| 1 | <?php |
||
| 9 | class Company extends Item implements CompanyInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Constructor |
||
| 13 | * @param \vfalies\tmdb\Tmdb $tmdb |
||
| 14 | * @param int $company_id |
||
| 15 | * @param array $options |
||
| 16 | */ |
||
| 17 | 14 | public function __construct(Tmdb $tmdb, $company_id, array $options = array()) |
|
| 21 | |||
| 22 | 2 | public function getDescription() |
|
| 29 | |||
| 30 | 2 | public function getHeadQuarters() |
|
| 37 | |||
| 38 | 2 | public function getHomePage() |
|
| 45 | |||
| 46 | 3 | public function getId() |
|
| 53 | |||
| 54 | 2 | public function getLogoPath() |
|
| 61 | |||
| 62 | 2 | public function getName() |
|
| 69 | |||
| 70 | } |
||
| 71 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: