22declare(strict_types=1);
34 private int $blockTypeId,
35 private ?
string $tileClass =
null
38 throw new \InvalidArgumentException(
"Block type ID may not be negative");
40 if($tileClass !==
null){
45 public function getBlockTypeId() : int{ return $this->blockTypeId; }
51 return $this->tileClass;
__construct(private int $blockTypeId, private ?string $tileClass=null)
static testValidInstance(string $className, string $baseName)