| 1 | <?php |
||
| 16 | abstract class AbstractTeam |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | protected $id; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $name; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * AbstractTeam constructor. |
||
| 30 | * |
||
| 31 | * @param string $name |
||
| 32 | */ |
||
| 33 | public function __construct($name = null) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return int |
||
| 40 | */ |
||
| 41 | public function getId() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getName() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string $name |
||
| 56 | * |
||
| 57 | * @return $this |
||
| 58 | */ |
||
| 59 | public function setName($name) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * {@inheritdoc} |
||
| 68 | */ |
||
| 69 | public function __toString() |
||
| 73 | } |
||
| 74 |