1 | <?php |
||
21 | class Documents |
||
22 | { |
||
23 | /** |
||
24 | * Filesystem. |
||
25 | * |
||
26 | * @var Filesystem |
||
27 | */ |
||
28 | protected $fs; |
||
29 | |||
30 | /** |
||
31 | * Server. |
||
32 | * |
||
33 | * @var Server |
||
34 | */ |
||
35 | protected $server; |
||
36 | |||
37 | /** |
||
38 | * Decorator. |
||
39 | * |
||
40 | * @var AttributeDecorator |
||
41 | */ |
||
42 | protected $decorator; |
||
43 | |||
44 | /** |
||
45 | * Constructor. |
||
46 | */ |
||
47 | public function __construct(Server $server, AttributeDecorator $decorator) |
||
53 | |||
54 | /** |
||
55 | * Create new empty document. |
||
56 | */ |
||
57 | public function post(string $name, string $type, ?string $collection = null, int $conflict = 0, ?bool $readonly = null, ?array $meta = null): Response |
||
74 | } |
||
75 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.