1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| <?php
| declare(strict_types=1);
|
| namespace App\Model;
|
| class BookSearch {
| public ?string $author = null;
| public ?string $title = null;
| public ?string $edition = null;
| public ?string $publisher = null;
|
| public function isEmpty(): bool {
| return trim(implode('', [$this->author, $this->title, $this->edition, $this->publisher])) === '';
| }
| }
|
|