‪TYPO3CMS  ‪main
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 {
22  protected ?string ‪$color = null;
23 
24  protected ?int ‪$height = null;
25 
26  protected ?int ‪$numberOfEars = null;
27 
28  public function ‪getColor(): ?string
29  {
30  return ‪$this->color;
31  }
32 
33  public function ‪setColor(?string ‪$color): void
34  {
35  $this->color = ‪$color;
36  }
37 
38  public function ‪getHeight(): ?int
39  {
40  return ‪$this->height;
41  }
42 
43  public function ‪setHeight(?int ‪$height): void
44  {
45  $this->height = ‪$height;
46  }
47 
48  public function ‪getNumberOfEars(): ?int
49  {
51  }
52 
53  public function ‪setNumberOfEars(?int ‪$numberOfEars): void
54  {
55  $this->numberOfEars = ‪$numberOfEars;
56  }
57 }
‪TYPO3Tests\TypeConverterTest\Domain\Model\Animal
Definition: Animal.php:21
‪TYPO3Tests\TypeConverterTest\Domain\Model
Definition: Animal.php:18
‪TYPO3Tests\TypeConverterTest\Domain\Model\Cat\setColor
‪setColor(?string $color)
Definition: Cat.php:33
‪TYPO3Tests\TypeConverterTest\Domain\Model\Cat\getColor
‪getColor()
Definition: Cat.php:28
‪TYPO3Tests\TypeConverterTest\Domain\Model\Cat\setNumberOfEars
‪setNumberOfEars(?int $numberOfEars)
Definition: Cat.php:53
‪TYPO3Tests\TypeConverterTest\Domain\Model\Cat\getHeight
‪getHeight()
Definition: Cat.php:38
‪TYPO3Tests\TypeConverterTest\Domain\Model\Cat\$color
‪string $color
Definition: Cat.php:22
‪TYPO3Tests\TypeConverterTest\Domain\Model\Cat\$height
‪int $height
Definition: Cat.php:24
‪TYPO3Tests\TypeConverterTest\Domain\Model\Cat
Definition: Cat.php:21
‪TYPO3Tests\TypeConverterTest\Domain\Model\Cat\getNumberOfEars
‪getNumberOfEars()
Definition: Cat.php:48
‪TYPO3Tests\TypeConverterTest\Domain\Model\Cat\$numberOfEars
‪int $numberOfEars
Definition: Cat.php:26
‪TYPO3Tests\TypeConverterTest\Domain\Model\Cat\setHeight
‪setHeight(?int $height)
Definition: Cat.php:43