protected function getArticle($brand, $number) { require_once __DIR__ . '/../lib.php'; $article = \Article::getOne($brand, $number, $this->collectionArticle, ['brand', 'number', 'images']); if (!$article && $this->isGetArticleByAltNumber) { $article = \Article::getByAltNumber($brand, $number, $this->collectionArticle, ['brand', 'number', 'images']); } //Поиск по ean if (!$article && $this->isGetArticleByEan) { $article = \Article::getByEan($brand, $number, $this->collectionArticle, ['brand', 'number', 'images']); } return $article; }