1 | <?php |
||
7 | class ArticleResource implements ArticleResourceInterface |
||
8 | { |
||
9 | /** @var Article $articleRes */ |
||
10 | private $articleRes; |
||
11 | |||
12 | /** |
||
13 | * ArticleResource constructor. |
||
14 | * |
||
15 | * @param $articleRes |
||
16 | */ |
||
17 | public function __construct(Article $articleRes) |
||
21 | |||
22 | /** |
||
23 | * @param $data |
||
24 | * |
||
25 | * @return int|boolean |
||
26 | */ |
||
27 | public function getIdByData($data) |
||
31 | |||
32 | /** |
||
33 | * @param $articleId |
||
34 | * @param array $article |
||
35 | * |
||
36 | * @return mixed |
||
37 | * @throws \Shopware\Components\Api\Exception\ValidationException |
||
38 | * @throws \Shopware\Components\Api\Exception\ParameterMissingException |
||
39 | * @throws \Shopware\Components\Api\Exception\NotFoundException |
||
40 | */ |
||
41 | public function update($articleId, array $article) |
||
45 | |||
46 | /** |
||
47 | * @param array $article |
||
48 | * |
||
49 | * @return mixed |
||
50 | * @throws \Shopware\Components\Api\Exception\ValidationException |
||
51 | * @throws \Shopware\Components\Api\Exception\CustomValidationException |
||
52 | */ |
||
53 | public function create(array $article) |
||
57 | } |
||
58 |