-
Notifications
You must be signed in to change notification settings - Fork 8
/
ReflectionProperty.php
59 lines (47 loc) · 1.09 KB
/
ReflectionProperty.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
namespace ClassTransformer\Contracts;
use ClassTransformer\Reflection\Types\PropertyType;
/**
* @psalm-api
*/
abstract class ReflectionProperty
{
/** @var class-string|string $propertyClass */
public string $name;
/** @var class-string */
public string $class;
/** @var PropertyType */
public PropertyType $type;
/**
* @param class-string $name
*
* @return mixed
*/
abstract public function getAttribute(string $name): mixed;
/**
* @param class-string $name
*
* @return null|array<string>
*/
abstract public function getAttributeArguments(string $name): ?array;
/**
* @return string
*/
abstract public function getDocComment(): string;
/**
* @return bool
*/
abstract public function hasSetMutator(): bool;
/**
* @return bool
*/
abstract public function notTransform(): bool;
/**
* @return bool
*/
abstract public function convertEmptyToNull(): bool;
/**
* @return array<string>
*/
abstract public function getAliases(): array;
}