| 1 | <?php |
||
| 15 | class Profile extends Model |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Profile vars |
||
| 19 | */ |
||
| 20 | public $handle; |
||
| 21 | public $citizen_number; |
||
| 22 | public $status; |
||
| 23 | public $moniker; |
||
| 24 | public $avatar; |
||
| 25 | public $enlisted; |
||
| 26 | public $title; |
||
| 27 | public $title_image; |
||
| 28 | public $bio; |
||
| 29 | public $website_link; |
||
| 30 | public $website_title; |
||
| 31 | public $country; |
||
| 32 | public $region; |
||
| 33 | public $fluenc; |
||
| 34 | public $discussion_count; |
||
| 35 | public $post_count; |
||
| 36 | public $last_forum_visit; |
||
| 37 | public $forum_roles; |
||
| 38 | public $organizations; |
||
| 39 | public $date_added; |
||
| 40 | public $last_scrape_date; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var array |
||
| 44 | */ |
||
| 45 | protected $magicProperties = [ |
||
| 46 | 'threads', |
||
| 47 | 'posts' |
||
| 48 | ]; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @var Store |
||
| 52 | */ |
||
| 53 | private $threads; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @var Store |
||
| 57 | */ |
||
| 58 | private $posts; |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Profile constructor. |
||
| 62 | * |
||
| 63 | * @param $profileData |
||
| 64 | */ |
||
| 65 | 6 | public function __construct($profileData) |
|
| 71 | |||
| 72 | /** |
||
| 73 | * @return Store |
||
| 74 | */ |
||
| 75 | 2 | final protected function threads() |
|
| 85 | |||
| 86 | /** |
||
| 87 | * @return Store |
||
| 88 | */ |
||
| 89 | 2 | final protected function posts() |
|
| 99 | } |