| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function __construct() |
||
| 28 | { |
||
| 29 | $this->apiKey = env('CLOCKWORK_API_KEY'); |
||
| 30 | $this->client = new ClockworkClient($this->apiKey); |
||
| 31 | $this->message = new Message(); |
||
|
|
|||
| 32 | $this->message->setNumber(self::MSG_NUMBER); |
||
| 33 | $this->message->setContent(trans('texts.message.sample_body')); |
||
| 34 | } |
||
| 35 | |||
| 66 |
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: