-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Sergei Predvoditelev <[email protected]>
- Loading branch information
Showing
21 changed files
with
237 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\Db\Constant; | ||
|
||
/** | ||
* The following constants are returned by {@see gettype()} function. | ||
* | ||
* @link https://www.php.net/manual/en/function.gettype.php | ||
*/ | ||
final class GettypeResult | ||
{ | ||
/** | ||
* Define the php type as `array`. | ||
*/ | ||
public const ARRAY = 'array'; | ||
/** | ||
* Define the php type as `boolean`. | ||
*/ | ||
public const BOOLEAN = 'boolean'; | ||
/** | ||
* Define the php type as `double`. | ||
*/ | ||
public const DOUBLE = 'double'; | ||
/** | ||
* Define the php type as `integer`. | ||
*/ | ||
public const INTEGER = 'integer'; | ||
/** | ||
* 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 `resource`. | ||
*/ | ||
public const RESOURCE = 'resource'; | ||
/** | ||
* Define the php type as `string`. | ||
*/ | ||
public const STRING = 'string'; | ||
/** | ||
* Define the php type as `unknown type`. | ||
*/ | ||
public const UNKNOWN = 'unknown type'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 a related model class. | ||
* | ||
* @see ColumnSchemaInterface::getPhpType() | ||
* @see https://www.php.net/manual/en/language.types.type-system.php | ||
*/ | ||
final 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'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.