Exemplo n.º 1
0
 /**
  * @param Product|null $product
  */
 public function __construct($product = null)
 {
     parent::__construct();
     $this->product = $product;
 }
Exemplo n.º 2
0
 /**
  * @param string $description
  * @param \Closure $body
  * @param AbstractContext $parent
  * @param bool $skip
  * @param SpecRunner $specRunner
  */
 public function __construct($description, \Closure $body, AbstractContext $parent, SpecRunner $specRunner, $skip = false)
 {
     parent::__construct($description, $parent, $skip);
     $this->body = $body;
     $this->specRunner = $specRunner;
 }
Exemplo n.º 3
0
 /**
  * Thing constructor. Merges extendedStructure up
  *
  * @param array $attributes
  * @param array $extendedStructure
  */
 public function __construct(array $attributes, array $extendedStructure = [])
 {
     $this->structure = array_merge($this->structure, $extendedStructure);
     parent::__construct($attributes);
 }
Exemplo n.º 4
0
 /**
  * @param string $description
  * @param \Closure $body
  * @param AbstractContext|null $parent
  */
 public function __construct($description, \Closure $body, AbstractContext $parent = null, $skip = false)
 {
     parent::__construct($description, $parent, $skip);
     $this->body = $body;
 }