austinheap /
laravel-database-influxdb
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * src/Jobs/Write.php. |
||
| 4 | * |
||
| 5 | * @author Austin Heap <[email protected]> |
||
| 6 | * @version v0.1.7 |
||
| 7 | */ |
||
| 8 | declare(strict_types=1); |
||
| 9 | |||
| 10 | namespace AustinHeap\Database\InfluxDb\Jobs; |
||
| 11 | |||
| 12 | use AustinHeap\Database\InfluxDb\InfluxDbServiceProvider; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Class Write. |
||
| 16 | */ |
||
| 17 | class Write extends Job |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string|array |
||
| 21 | */ |
||
| 22 | public $payload = null; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | public $parameters = null; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Write constructor. |
||
| 31 | * |
||
| 32 | * @param array $parameters |
||
| 33 | * @param string|array $payload |
||
| 34 | */ |
||
| 35 | public function __construct(array $parameters, $payload) |
||
| 36 | { |
||
| 37 | $this->parameters = $parameters; |
||
| 38 | $this->payload = $payload; |
||
| 39 | |||
| 40 | parent::__construct( |
||
| 41 | [ |
||
| 42 | 'parameters' => $parameters, |
||
| 43 | 'payload' => $payload, |
||
| 44 | ] |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return void |
||
| 50 | */ |
||
| 51 | public function handle() |
||
| 52 | { |
||
| 53 | InfluxDbServiceProvider::getInstance() |
||
| 54 | ->write( |
||
|
0 ignored issues
–
show
|
|||
| 55 | $this->parameters, |
||
| 56 | $this->payload |
||
| 57 | ); |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return array |
||
| 62 | */ |
||
| 63 | public function tags(): array |
||
| 64 | { |
||
| 65 | return [static::class.':1']; |
||
| 66 | } |
||
| 67 | } |
||
| 68 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.