File manager - Edit - /var/www/payraty/helpdesk/vendor/rector/rector/rules/Php80/ValueObject/AnnotationToAttribute.php
Back
<?php declare (strict_types=1); namespace Rector\Php80\ValueObject; final class AnnotationToAttribute { /** * @var class-string|string * @readonly */ private $tag; /** * @var class-string|null * @readonly */ private $attributeClass; /** * @param class-string|string $tag * @param class-string|null $attributeClass */ public function __construct(string $tag, ?string $attributeClass = null) { $this->tag = $tag; $this->attributeClass = $attributeClass; } /** * @return class-string|string */ public function getTag() : string { return $this->tag; } /** * @return class-string */ public function getAttributeClass() : string { if ($this->attributeClass === null) { return $this->tag; } return $this->attributeClass; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings