public function match(array $tags = null, $target = self::TARGET_ALL, $type = self::TYPE_ALL)
    {
        $match = ($this->getType() & $type) && ($this->getTarget() & $target);
        
        if ($match && isset($tags)) {
            $match = (count(array_intersect($tags, $this->getTags())) == count($tags));
        }
        
        return $match;
    }
public function match(array $tags = null, $target = self::TARGET_ALL, $type = self::TYPE_ALL)
    {
        $match = ($this->getType() & $type) && ($this->getTarget() & $target);
        
        if ($match && isset($tags)) {
            $match = (count(array_intersect($tags, $this->getTags())) == count($tags));
        }
        
        return $match;
    }
public function match ( array $ tags = null , $ target = self :: TARGET_ALL , $ type = self :: TYPE_ALL ) { $ match = ( $ this -> getType ( ) & $ type ) && ( $ this -> getTarget ( ) & $ target ) ; if ( $ match && isset ( $ tags ) ) { $ match = ( count ( array_intersect ( $ tags , $ this -> getTags ( ) ) ) == count ( $ tags ) ) ; } return $ match ; }
Checks if a TimePoint matches the criteria
@param array $tags
@param int $target
@param int $type
@return bool
Checks if a TimePoint matches the criteria