12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- namespace Symfony\Component\PropertyInfo;
- final class PropertyReadInfo
- {
- public const TYPE_METHOD = 'method';
- public const TYPE_PROPERTY = 'property';
- public const VISIBILITY_PUBLIC = 'public';
- public const VISIBILITY_PROTECTED = 'protected';
- public const VISIBILITY_PRIVATE = 'private';
- private $type;
- private $name;
- private $visibility;
- private $static;
- private $byRef;
- public function __construct(string $type, string $name, string $visibility, bool $static, bool $byRef)
- {
- $this->type = $type;
- $this->name = $name;
- $this->visibility = $visibility;
- $this->static = $static;
- $this->byRef = $byRef;
- }
-
- public function getType(): string
- {
- return $this->type;
- }
-
- public function getName(): string
- {
- return $this->name;
- }
- public function getVisibility(): string
- {
- return $this->visibility;
- }
- public function isStatic(): bool
- {
- return $this->static;
- }
-
- public function canBeReference(): bool
- {
- return $this->byRef;
- }
- }
|