| 1 | <?php |
||
| 7 | class ApnCredentials |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Create a new instance of the credentials. |
||
| 11 | * |
||
| 12 | * @param \Illuminate\Contracts\Config\Repository |
||
| 13 | */ |
||
| 14 | public function __construct(Repository $config) |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Get the APN environment. |
||
| 21 | * |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | public function environment() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get the APN certificate.. |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function certificate() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get the APN pass phrase. |
||
| 41 | * |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function passPhrase() |
||
| 48 | } |
||
| 49 |
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: