1 | <?php |
||
27 | final class XApiClient implements XApiClientInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var SerializerRegistryInterface |
||
31 | */ |
||
32 | private $serializerRegistry; |
||
33 | |||
34 | /** |
||
35 | * @param HandlerInterface $requestHandler The HTTP request handler |
||
36 | * @param SerializerRegistryInterface $serializerRegistry The serializer registry |
||
37 | * @param string $version The xAPI version |
||
38 | */ |
||
39 | public function __construct(HandlerInterface $requestHandler, SerializerRegistryInterface $serializerRegistry, $version) |
||
45 | |||
46 | /** |
||
47 | * {@inheritDoc} |
||
48 | */ |
||
49 | public function getStatementsApiClient() |
||
59 | |||
60 | /** |
||
61 | * {@inheritDoc} |
||
62 | */ |
||
63 | public function getStateApiClient() |
||
72 | |||
73 | /** |
||
74 | * {@inheritDoc} |
||
75 | */ |
||
76 | public function getActivityProfileApiClient() |
||
84 | |||
85 | /** |
||
86 | * {@inheritDoc} |
||
87 | */ |
||
88 | public function getAgentProfileApiClient() |
||
97 | } |
||
98 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: