コード例 #1
0
 /**
  * {@inheritDoc}
  */
 public function getId()
 {
     if ($this->__isInitialized__ === false) {
         return parent::getId();
     }
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', array());
     return parent::getId();
 }
コード例 #2
0
ファイル: TeacherTest.php プロジェクト: parnustk/lisbackend
 /**
  * @covers Core\Entity\Teacher::setId
  * @covers Core\Entity\Teacher::getId
  */
 public function testSetGetId()
 {
     $this->teacher->setId(1);
     $this->assertEquals(1, $this->teacher->getId());
 }