| 1 | <?php |
||
| 8 | class ChildEntity extends ParentEntity |
||
| 9 | { |
||
| 10 | public $public; |
||
| 11 | protected $ownProperty; |
||
| 12 | |||
| 13 | public function childProp(): string |
||
| 14 | { |
||
| 15 | return 'childPropValue'; |
||
| 16 | } |
||
| 17 | |||
| 18 | protected function childProtectedProp(): \stdClass |
||
| 19 | { |
||
| 20 | return new \stdClass(); |
||
| 21 | } |
||
| 22 | |||
| 23 | protected function childExampleObj1(): \Cycle\ORM\Promise\Tests\Declaration\Fixtures\Entity |
||
| 24 | { |
||
| 25 | return new \Cycle\ORM\Promise\Tests\Declaration\Fixtures\Entity(); |
||
| 26 | } |
||
| 27 | |||
| 28 | protected function childExampleObj2(): EWC |
||
| 29 | { |
||
| 30 | return new EWC(); |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function childExampleObj3(): EWC |
||
| 34 | { |
||
| 35 | return new \Cycle\ORM\Promise\Tests\Declaration\Fixtures\EntityWithConstructor(); |
||
| 36 | } |
||
| 37 | } |