Пример #1
0
 /**
  * Add a structure to the storage
  *
  * @param Structure $structure
  */
 public function add(Structure $structure)
 {
     $this->storage->add($structure);
 }
Пример #2
0
 /**
  * @param gries\MControl\Storage\Structure\StructureStorageInterface $storage
  * @param gries\MControl\Builder\Structure $structure
  */
 function it_should_add_a_structure_to_the_storage(StructureStorageInterface $storage, Structure $structure)
 {
     $storage->add($structure)->shouldBeCalled();
     $this->beConstructedWith($storage);
     $this->add($structure);
 }