File manager - Edit - /var/www/html/gop/api/vendor/doctrine/dbal/src/Schema/AbstractOptionallyNamedObject.php
Back
<?php declare(strict_types=1); namespace Doctrine\DBAL\Schema; use Doctrine\DBAL\Schema\Exception\InvalidState; /** * An abstract {@see OptionallyNamedObject}. * * @template N of Name * @extends AbstractAsset<N> * @implements OptionallyNamedObject<N> */ abstract class AbstractOptionallyNamedObject extends AbstractAsset implements OptionallyNamedObject { /** * The name of the database object. * * Until the validity of the name is enforced, this property isn't guaranteed to be always initialized. The property * can be accessed only if {@see $isNameInitialized} is set to true. * * @var ?N */ protected ?Name $name; public function __construct(?string $name) { parent::__construct($name ?? ''); } public function getObjectName(): ?Name { if (! $this->isNameInitialized) { throw InvalidState::objectNameNotInitialized(); } return $this->name; } protected function setName(?Name $name): void { $this->name = $name; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings