1 | <?php |
||
9 | final class ApiScope |
||
10 | { |
||
11 | private const FINANCE = 'FINANCE'; |
||
12 | private const PURCHASE = 'PURCHASE'; |
||
13 | private const PRODUCT = 'PRODUCT'; |
||
14 | private const INVENTORY = 'INVENTORY'; |
||
15 | private const IMAGE = 'IMAGE'; |
||
16 | |||
17 | /** |
||
18 | * @var Rights |
||
19 | */ |
||
20 | private $finance; |
||
21 | |||
22 | /** |
||
23 | * @var Rights |
||
24 | */ |
||
25 | private $purchase; |
||
26 | |||
27 | /** |
||
28 | * @var Rights |
||
29 | */ |
||
30 | private $product; |
||
31 | |||
32 | /** |
||
33 | * @var Rights |
||
34 | */ |
||
35 | private $inventory; |
||
36 | |||
37 | /** |
||
38 | * @var Rights |
||
39 | */ |
||
40 | private $image; |
||
41 | |||
42 | 2 | public function setFinancesScope(Rights $rights): void |
|
46 | |||
47 | 2 | public function setPurchaseScope(Rights $rights): void |
|
51 | |||
52 | 2 | public function setProductScope(Rights $rights): void |
|
56 | |||
57 | 2 | public function setInventoryScope(Rights $rights): void |
|
61 | |||
62 | 2 | public function setImageScope(Rights $rights): void |
|
66 | |||
67 | 11 | public function getUrlParameters(): string |
|
88 | } |
||
89 |