| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | class Actor implements ITypeaheadData |
||
| 11 | { |
||
| 12 | |||
| 13 | const MEDIA_TYPE_MOVIE = 'movie'; |
||
| 14 | const MEDIA_TYPE_TVSHOW = 'tvshow'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | public $name; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | public $role; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | public $thumbnail; |
||
| 30 | |||
| 31 | public function getName() |
||
| 32 | { |
||
| 33 | return $this->name; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Converts the object to a string. This is necessary in order to filter |
||
| 38 | * duplicate actors with functions such as array_unique() |
||
| 39 | * @return string the string representation of the actor |
||
| 40 | */ |
||
| 41 | public function __toString() |
||
| 44 | } |
||
| 45 | |||
| 47 |