1 | <?php |
||
14 | class GetUserProfilePhotos extends AbstractMethodFunctions |
||
15 | { |
||
16 | /** |
||
17 | * Unique identifier of the target user |
||
18 | * @var int |
||
19 | */ |
||
20 | public $user_id = 0; |
||
21 | |||
22 | /** |
||
23 | * Optional. Sequential number of the first photo to be returned. By default, all photos are returned. |
||
24 | * @var int |
||
25 | */ |
||
26 | public $offset = 0; |
||
27 | |||
28 | /** |
||
29 | * Optional. Limits the number of photos to be retrieved. Values between 1—100 are accepted. Defaults to 100. |
||
30 | * @var int |
||
31 | */ |
||
32 | public $limit = 100; |
||
33 | |||
34 | /** |
||
35 | * This call will return an array with updates, so call up a custom type to do this |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | 2 | public static function bindToObjectType(): string |
|
43 | } |
||
44 |
The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.
The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.
To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.