/
uchi-pro
/
api-client-php
Обзор
Документация
Войти
/
uchi-pro
/
api-client-php
Код
Запросы
0
Пакеты
0
Релизы
3
Аналитика
master
src/Courses/Criteria.php
43 строки
701 B
Andrey Gladyshev
feat: перевести проект на php 8.2. убрать устаревшие методы
31 май 2024, 13:00
31 май 2024, 13:00
5826891
Код
Авторство
О чём код?
<?php declare(strict_types=1); namespace UchiPro\Courses; use UchiPro\Vendors\Vendor; class Criteria { public ?Vendor $vendor = null; public ?Course $parent = null; public ?string $gid = null; public ?bool $withInactive = null; public ?bool $withDeleted = null; /** * @var Tag[] */ public ?array $tags = null; 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; } }