francis94c /
vimeo-livestream
| 1 | <?php |
||
| 2 | |||
| 3 | namespace LiveStream\Resources; |
||
| 4 | |||
| 5 | /** |
||
| 6 | * Account Object |
||
| 7 | * |
||
| 8 | * @property int $id The integer representation of the unique identifier for this account. |
||
| 9 | * @property string $description Nullable. The user-defined account description as a UTF-8 string. |
||
| 10 | * @property string $email The registered email ID with the account. |
||
| 11 | * @property string $timezone The timezone identifier string. |
||
| 12 | * @property \LiveStream\Resources\Picture $picture An object containing the urls of the account owner’s pictures. |
||
| 13 | * @property object $follower An object containing a single property, total, which indicates the number of accounts who are following this account. |
||
| 14 | * @property object $following An object containing a single property, total, which indicates the number of accounts being followed by this account. |
||
| 15 | * @property string $fullName The user-defined full name for the account as a UTF-8 string. |
||
| 16 | * @property string $shortName Nullable. The user-defined short name of the account as a UTF-8 string consisting only of letters and numbers. |
||
| 17 | * @property string $createdAt Account creation date and time as a string in ISO 8601 date time format. |
||
| 18 | * @property object $draftEvents An object containing a single property, total, which indicates the number of draft events this account has created. |
||
| 19 | * @property object $privateEvents An object containing a single property, total, which indicates the number of private events this account has created. |
||
| 20 | * @property object $upcomingEvents An object containing a single property, total, which indicates the number of upcoming events for this account. |
||
| 21 | * @property object $pastEvents An object containing a single property, total, which indicates the number of past events for this account. |
||
| 22 | */ |
||
| 23 | class Account extends Resource |
||
| 24 | { |
||
| 25 | public static function fromObject(object $object): Resource |
||
| 26 | { |
||
| 27 | $instance = parent::fromObject($object); |
||
| 28 | |||
| 29 | $instance->picture = Picture::fromObject($instance->picture); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
The property
picture does not exist on LiveStream\Resources\Resource. Since you implemented __get, consider adding a @property annotation.
Loading history...
The property
picture does not exist on LiveStream\Resources\Resource. Since you implemented __set, consider adding a @property annotation.
Loading history...
|
|||
| 30 | |||
| 31 | return $instance; |
||
| 32 | } |
||
| 33 | } |
||
| 34 |