コード例 #1
0
ファイル: Analyser.php プロジェクト: dannyvdsluijs/puml
 /**
  * Run the analysis
  *
  * @return \Puml\Model\Object
  * @since 0.1
  */
 public function run()
 {
     $this->reflectedObject = new \ReflectionClass($this->objectName);
     $this->object->setName($this->reflectedObject->getName());
     /* Analyse its properties */
     $this->extractProperties($this->reflectedObject, $this->object);
     /* Analyse its methods */
     $this->extractMethods($this->reflectedObject, $this->object);
     /* Analyse its parents */
     $this->determineParent($this->reflectedObject, $this->object);
     return $this->object;
 }
コード例 #2
0
ファイル: ObjectTest.php プロジェクト: dannyvdsluijs/puml
 /**
  * @covers Puml\Model\Object::getName
  */
 public function testGetName()
 {
     $name = 'stdClass';
     $this->object->setName($name);
     $this->assertSame($name, $this->object->getName());
 }