| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | public function __construct() |
||
| 19 | { |
||
| 20 | $this->apiKey = env('CLOCKWORK_API_KEY'); |
||
| 21 | $this->client = new ClockworkClient($this->apiKey); |
||
| 22 | $this->message = new Message(); |
||
|
|
|||
| 23 | $this->message->setNumber('07700900123'); |
||
| 24 | $this->message->setContent('Check out this message!'); |
||
| 25 | |||
| 26 | } |
||
| 27 | /** |
||
| 56 |
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: