示例#1
0
 /**
  * @param array                  $stateKeys     stateKeys
  * @param SpecificationInterface $specification specification
  */
 public function __construct(array $stateKeys, SpecificationInterface $specification)
 {
     if (empty($stateKeys)) {
         throw new \InvalidArgumentException('StateCollection expects a collection of state keys');
     }
     $this->stateKeys = $stateKeys;
     parent::__construct($specification);
 }
示例#2
0
 public function __construct($untilKey, SpecificationInterface $specification)
 {
     $this->untilKey = $untilKey;
     parent::__construct($specification);
 }