/
uchi-pro
/
api-client-php
Обзор
Документация
Войти
/
uchi-pro
/
api-client-php
Код
Запросы
0
Пакеты
0
Релизы
3
Аналитика
3.14.0
src/Courses/Criteria.php
58 строк
787 B
Andrey Gladyshev
test: вынести весь общий код тестов в общий класс
29 май 2024, 12:53
29 май 2024, 12:53
ae5aa5b
Код
Авторство
О чём код?
<?php declare(strict_types=1); namespace UchiPro\Courses; use UchiPro\Vendors\Vendor; class Criteria { /** * @var Vendor */ public $vendor; /** * @var Course */ public $parent; /** * @var string */ public $gid; /** * @var bool */ public $withInactive; /** * @var bool */ public $withDeleted; /** * @var Tag[] */ public $tags; public function withVendor(Vendor $vendor): self { $this->vendor = $vendor; return $this; } public function withGid(string $gid): self { $this->gid = $gid; return $this; } public function withTags(array $tags): self { $this->tags = $tags; return $this; } }