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