コード例 #1
0
 /**
  * @depends testAttributeAwareInterface
  * @param AttributeAware $entity
  */
 public function testAttributeBag(AttributeAware $entity)
 {
     $bag = $entity->getAttributeBag();
     $this->assertInstanceOf('Fhaculty\\Graph\\Attribute\\AttributeBag', $bag);
 }
コード例 #2
0
ファイル: GraphComposer.php プロジェクト: clue/graph-composer
 private function setLayout(AttributeAware $entity, array $layout)
 {
     $bag = new AttributeBagNamespaced($entity->getAttributeBag(), 'graphviz.');
     $bag->setAttributes($layout);
     return $entity;
 }