1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\PhpDoc\Tag; |
4: | |
5: | use PHPStan\Type\Type; |
6: | |
7: | |
8: | class PropertyTag |
9: | { |
10: | |
11: | public function __construct( |
12: | private Type $type, |
13: | private bool $readable, |
14: | private bool $writable, |
15: | ) |
16: | { |
17: | } |
18: | |
19: | public function getType(): Type |
20: | { |
21: | return $this->type; |
22: | } |
23: | |
24: | public function isReadable(): bool |
25: | { |
26: | return $this->readable; |
27: | } |
28: | |
29: | public function isWritable(): bool |
30: | { |
31: | return $this->writable; |
32: | } |
33: | |
34: | } |
35: | |