*/ private array $consts = []; /** * @param Constant[] $consts */ public function setConstants(array $consts): static { $this->consts = []; foreach ($consts as $k => $const) { if (!$const instanceof Constant) { trigger_error(__METHOD__ . '() accepts an array of Constant as parameter, ' . get_debug_type($const) . ' given.', E_USER_DEPRECATED); $const = (new Constant($k))->setValue($const)->setPublic(); } $this->consts[$const->getName()] = $const; } return $this; } /** * @return Constant[] */ public function getConstants(): array { return $this->consts; } public function addConstant(string $name, mixed $value): Constant { if (isset($this->consts[$name])) { throw new Nette\InvalidStateException("Cannot add constant '$name', because it already exists."); } return $this->consts[$name] = (new Constant($name)) ->setValue($value) ->setPublic(); } public function removeConstant(string $name): static { unset($this->consts[$name]); return $this; } } __halt_compiler();----SIGNATURE:----LnXA2NRCHjo/WxuJhkY8doo1MPi7Psp7qm9N9Iv3Kz2oC48qUP4fIFCtecxbSVsiqDS2jLEqhL9bwvB6oMXopZ8UpuxQ4dHEFvuqSrqIz9dDR928v4lpHFx+PM57W6ZbBNjTz5rtGB6ZurgBjC6Hyeb9kLRMTCVnUsfbj9k3BOOA89jU6u44v2jPlBQaZyijlU9ufVdJ+aAonwCslgVIi0lFGPzaepWbgrrXGI5nMZhjvh5lsqR/AgZpRjp7NSil8lb822pWELATcfpxdsMz1jCSElkaK3xBAgtlRZFSGjcTOgKraJEE4rVadCcRr9rdEAnon0B7kwxJy5xe/t1K/Os/lExQuls0OTC7ybY4oH/bTIbNR+6BDVPZBRDJtHVdi/hx2LA/sQlMbA3J2aMnnXT/m7fU3sSfwDJBA6ebiNJTDsEd4hWRe1c4z7dnnGEOvI8Mr6i0sLtRZBmOonMGlTGli02IcA+3V8M7lg4Ag8mxQB/ytUGuVJwWNibdiduCQOhq1uW2DqcAWKH6EK50L8BVpRHmuCmFa6oIztORGIKbymgAsudIERY7/EtO70U71rDg+p0Kb92GRkIRJFoFdc3ndQrFWxx8NMkUom2IuIgEuFm8QXP935lNif/xGSrlay2BtwR4Neevrs/Qc9TjjoD/IokZxyO6mm6IjJqY15A=----ATTACHMENT:----NzEzMzIxMjM5NzY5MDExMyA5NTYyODE4OTQ2NTU5MzE3IDI3MzE3MjE3MzI4MDc4ODY=