| 1 | <?php |
||
| 22 | class Request implements RequestCreatorInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | 3 | public function __construct(QueryBuilderInterface $builder, Query $query) |
|
| 32 | |||
| 33 | protected $detectedClass; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | 3 | public function createRequest() |
|
| 46 | |||
| 47 | public $tryClasses = [ |
||
| 48 | \hiqdev\hiart\guzzle\Request::class, |
||
| 49 | \hiqdev\hiart\httpclient\Request::class, |
||
| 50 | \hiqdev\hiart\curl\Request::class, |
||
| 51 | \hiqdev\hiart\stream\Request::class, |
||
| 52 | ]; |
||
| 53 | |||
| 54 | 3 | public function detectClass() |
|
| 64 | } |
||
| 65 |
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: