1 | <?php |
||
2 | |||
3 | namespace Psonic\Commands\Ingest; |
||
4 | |||
5 | use Psonic\Commands\Command; |
||
6 | |||
7 | final class PopCommand extends Command |
||
8 | { |
||
9 | private $command = 'POP'; |
||
10 | private $parameters = []; |
||
11 | |||
12 | /** |
||
13 | * pops a text from a given object |
||
14 | * PopCommand constructor. |
||
15 | * @param string $collection |
||
16 | * @param string $bucket |
||
17 | * @param string $object |
||
18 | * @param string $text |
||
19 | */ |
||
20 | public function __construct(string $collection, string $bucket, string $object, string $text) |
||
21 | { |
||
22 | $this->parameters = [ |
||
23 | 'collection' => $collection, |
||
24 | 'bucket' => $bucket, |
||
25 | 'object' => $object, |
||
26 | 'text' => self::wrapInQuotes($text), |
||
0 ignored issues
–
show
Bug
Best Practice
introduced
by
![]() |
|||
27 | ]; |
||
28 | |||
29 | parent::__construct($this->command, $this->parameters); |
||
30 | } |
||
31 | } |