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;
 }
Exemplo n.º 2
0
 /**
  * {@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);
 }