Set a modifier for this builder

@param EventManagerAwareInterface $modifier
@return \Chippyash\BuilderPattern\AbstractModifiableBuilder
166104
public function setModifier(EventManagerAwareInterface $modifier)
    {
        $this->modifier = $modifier;
        foreach ($this->buildItems['collection'] as $builder) {
            if ($builder instanceof ModifiableInterface) {
                $builder->setModifier($modifier);
            }
        }
        
        return $this;
    }
582310
public function setEventManager(EventManagerInterface $eventManager)
    {
        $class = get_class($this);
        $eventManager->setIdentifiers(array(
            strtr($class, '\\', '.'),
            $class
        ));

        $this->eventManager = $eventManager;
        return $this;
    }
497320
public function addFieldValueFactorFunction($field, $factor, $modifier = 'none', BuilderInterface $query = null)
    {
        $function = [
            'field_value_factor' => [
                'field' => $field,
                'factor' => $factor,
                'modifier' => $modifier,
            ],
        ];

        $this->applyFilter($function, $query);

        $this->functions[] = $function;

        return $this;
    }
518920
protected function getModificator()
	{
		if ( $this->modificator ) {
			list($modificator_name, $modificator_value) = each($this->modificator);
		}
		else {
			$modificator_name = $modificator_value = null;
		}

		return array($modificator_name, $modificator_value);
	}
949688
public function of($type, $modifier = TransactionModifier::NONE)
    {
        if (!array_key_exists($type, $this->rules)) {
            $this->rules[$type] = [];
        }

        $target = new ValidationTarget($this, $type, $modifier);
        $this->rules[$type][] = $target;
        return $target;
    }
1288472
public void addModifier(String modifier) {
		if (!Strings.isEmpty(modifier)) {
			this.sarlEvent.getModifiers().add(modifier);
		}
	}
116183
public function getEventManager(): EventManagerInterface
    {
        if (null === $this->events) {
            $this->setEventManager(new EventManager());
        }
        return $this->events;
    }
7547
public function setEventManager(EventManagerInterface $events) {
	    parent::setEventManager($events);
		$controller = $this;
		$events->attach('dispatch', function ($e) use ($controller) {
			$controller->layout('layout/cathedral/builder');
		}, 100);
	}
831264
public void addModifier(String modifier) {
		if (!Strings.isEmpty(modifier)) {
			this.sarlSpace.getModifiers().add(modifier);
		}
	}
1274210
public function registerBashModulesOn(ModulableInterface $modulable)
    {
        if (!$modulable->getRegistered()) {
            $modulable->register(new Binaries());
            $modulable->register(new Core());
            $modulable->register(new Filesystem());
            $modulable->register(new Flow());
            $modulable->register(new Statuses());
        }

        return $modulable;
    }
497672
public function getEventManager()
    {
        if (!$this->eventManager instanceof EventManagerInterface) {
            $this->setEventManager(new EventManager(array(__CLASS__, get_called_class())));
        }
        return $this->eventManager;
    }
644480
public function setModificationDate($modificationDate = null)
    {
        if (!isset($modificationDate)) {
            $modificationDate = new \DateTime();
        }
        if (is_string($modificationDate)) {
            $modificationDate = new \DateTime($modificationDate);
        }
        $this->modificationDate = $modificationDate;
        return $this;
    }
626661
public function eventManager(EventManager $eventManager = null)
    {
        if ($eventManager !== null) {
            $this->_eventManager = $eventManager;
        }

        return $this->_eventManager;
    }
854804
private function modifyQuery(QueryBuilder $queryBuilder, ModifierInterface $modifier = null)
    {
        $query = $queryBuilder->getQuery();

        if ($modifier) {
            $modifier->modify($query);
        }

        return $query;
    }
404413
public function addMethod(string $name, string $modifier = "public", bool $static = false) : Method
    {
        $method = new Method($this, $name, $modifier, $static);
        return $this->addMethodObject($method);
    }
527435
public function removeSelectModifier($modifier)
    {
        $this->selectModifiers = array_values(array_diff($this->selectModifiers, array($modifier)));

        return $this;
    }
490124
public function modify(RequestInterface $request) : RequestInterface
    {
        /** @var RequestModifierInterface $modifier */
        foreach ($this->collection as $modifier) {
            $request = $modifier->modify($request);
        }

        return $request;
    }