‪TYPO3CMS  10.4
Cat.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 class ‪Cat extends ‪Animal
21 {
25  protected ‪$color;
26 
30  protected ‪$height;
31 
35  protected ‪$numberOfEars;
36 
40  public function ‪getColor(): ?string
41  {
42  return ‪$this->color;
43  }
44 
48  public function ‪setColor(?string ‪$color): void
49  {
50  $this->color = ‪$color;
51  }
52 
56  public function ‪getHeight(): ?int
57  {
58  return ‪$this->height;
59  }
60 
64  public function ‪setHeight(?int ‪$height): void
65  {
66  $this->height = ‪$height;
67  }
68 
72  public function ‪getNumberOfEars(): ?int
73  {
75  }
76 
80  public function ‪setNumberOfEars(?int ‪$numberOfEars): void
81  {
82  $this->numberOfEars = ‪$numberOfEars;
83  }
84 }
‪TYPO3\CMS\Extbase\Tests\Functional\Property\Fixtures\Cat\setHeight
‪setHeight(?int $height)
Definition: Cat.php:61
‪TYPO3\CMS\Extbase\Tests\Functional\Property\Fixtures\Cat\getNumberOfEars
‪int null getNumberOfEars()
Definition: Cat.php:69
‪TYPO3\CMS\Extbase\Tests\Functional\Property\Fixtures\Cat\$height
‪int null $height
Definition: Cat.php:28
‪TYPO3\CMS\Extbase\Tests\Functional\Property\Fixtures\Cat
Definition: Cat.php:21
‪TYPO3\CMS\Extbase\Tests\Functional\Property\Fixtures\Animal
Definition: Animal.php:21
‪TYPO3\CMS\Extbase\Tests\Functional\Property\Fixtures\Cat\setNumberOfEars
‪setNumberOfEars(?int $numberOfEars)
Definition: Cat.php:77
‪TYPO3\CMS\Extbase\Tests\Functional\Property\Fixtures\Cat\$color
‪string null $color
Definition: Cat.php:24
‪TYPO3\CMS\Extbase\Tests\Functional\Property\Fixtures\Cat\setColor
‪setColor(?string $color)
Definition: Cat.php:45
‪TYPO3\CMS\Extbase\Tests\Functional\Property\Fixtures\Cat\getHeight
‪int null getHeight()
Definition: Cat.php:53
‪TYPO3\CMS\Extbase\Tests\Functional\Property\Fixtures\Cat\getColor
‪string null getColor()
Definition: Cat.php:37
‪TYPO3\CMS\Extbase\Tests\Functional\Property\Fixtures
Definition: Animal.php:18
‪TYPO3\CMS\Extbase\Tests\Functional\Property\Fixtures\Cat\$numberOfEars
‪int null $numberOfEars
Definition: Cat.php:32