1 | <?php |
||
20 | class PhpConstant extends AbstractModel implements GenerateableInterface, DocblockInterface, ValueInterface { |
||
21 | |||
22 | use DocblockPart; |
||
23 | use LongDescriptionPart; |
||
24 | use NamePart; |
||
25 | use TypeDocblockGeneratorPart; |
||
26 | use TypePart; |
||
27 | use ValuePart; |
||
28 | |||
29 | /** |
||
30 | * Creates a new PHP constant |
||
31 | * |
||
32 | * @param string $name |
||
33 | * @param mixed $value |
||
34 | * @param bool $isExpression |
||
35 | * @return static |
||
36 | */ |
||
37 | 7 | public static function create($name = null, $value = null, $isExpression = false) { |
|
40 | |||
41 | /** |
||
42 | * Creates a new PHP constant |
||
43 | * |
||
44 | * @param string $name |
||
45 | * @param mixed $value |
||
46 | * @param bool $isExpression |
||
47 | */ |
||
48 | 14 | public function __construct($name = null, $value = null, $isExpression = false) { |
|
58 | |||
59 | /** |
||
60 | * @inheritDoc |
||
61 | */ |
||
62 | 5 | public function generateDocblock(): void { |
|
70 | } |
||
71 |