public function __construct(Door $door, $options = array()) { $this->door = $door; parent::__construct($this->door->getSite(), $options); $contract = $this->door->getActualContract(); $this->trustee = $contract instanceof ContractInterface ? $contract->getTrustee() : $this->trustee; }
/** * {@inheritdoc} */ public function buildConditions() { parent::buildConditions(); if ($this->getOption('number') !== null) { $this->getBill()->setNumber($this->getOption('number')); } $this->getBill()->setFee($this->fee); $this->getBill()->setFeesFollower($this->follower); }