| Total Complexity | 9 |
| Total Lines | 78 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class PeoplePictureModel extends MainModel |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Id of the people. |
||
| 15 | * |
||
| 16 | * @var string|int |
||
| 17 | */ |
||
| 18 | private $_id; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Default constructor. |
||
| 22 | * |
||
| 23 | * @param string|int $id |
||
| 24 | * @param string $parserArea |
||
| 25 | * |
||
| 26 | * @return void |
||
| 27 | */ |
||
| 28 | public function __construct($id, $parserArea = '#content table tr td') |
||
| 29 | { |
||
| 30 | $this->_id = $id; |
||
| 31 | $this->_url = $this->_myAnimeListUrl.'/people/'.$id; |
||
| 32 | $this->_parserArea = $parserArea; |
||
| 33 | |||
| 34 | parent::errorCheck($this); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Default call. |
||
| 39 | * |
||
| 40 | * @param string $method |
||
| 41 | * @param array $arguments |
||
| 42 | * |
||
| 43 | * @return array|string|int |
||
| 44 | */ |
||
| 45 | public function __call($method, $arguments) |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get type. |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | private function getType() |
||
| 58 | { |
||
| 59 | return null; |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Get people id. |
||
| 64 | * |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | private function getId() |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * Get people additional pictures. |
||
| 74 | * |
||
| 75 | * @return array |
||
| 76 | */ |
||
| 77 | private function getAllInfo() |
||
| 89 | } |
||
| 90 | } |