-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathPhpType.php
50 lines (46 loc) · 1.06 KB
/
PhpType.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
<?php
declare(strict_types=1);
namespace Yiisoft\Db\Constant;
use Yiisoft\Db\Schema\Column\ColumnSchemaInterface;
/**
* Defines the available PHP types.
* Used to generate properties of Active Record model or other user defined models.
*
* @see ColumnSchemaInterface::getPhpType()
* @see https://www.php.net/manual/en/language.types.type-system.php
*/
class PhpType
{
/**
* Define the php type as `array`.
*/
public const ARRAY = 'array';
/**
* Define the php type as `bool`.
*/
public const BOOL = 'bool';
/**
* Define the php type as `float`.
*/
public const FLOAT = 'float';
/**
* Define the php type as `int`.
*/
public const INT = 'int';
/**
* Define the php type as `mixed`.
*/
public const MIXED = 'mixed';
/**
* Define the php type as `null`.
*/
public const NULL = 'null';
/**
* Define the php type as `object`.
*/
public const OBJECT = 'object';
/**
* Define the php type as `string`.
*/
public const STRING = 'string';
}