This commit is contained in:
2020-10-29 18:17:25 +08:00
parent 6839b64be8
commit 53ae43b79b
198 changed files with 708 additions and 850 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
@@ -17,7 +17,7 @@ use Snowflake\Snowflake;
class ArrayCondition extends Condition
{
private $math = ['like', 'in', 'or', 'eq', 'neq', 'gt', 'ngt', 'lt', 'nlt'];
private array $math = ['like', 'in', 'or', 'eq', 'neq', 'gt', 'ngt', 'lt', 'nlt'];
/**
* @return mixed
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
+4 -4
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
@@ -14,15 +14,15 @@ use Snowflake\Core\Str;
abstract class Condition extends BaseObject
{
protected $column = '';
protected $opera = '=';
protected string $column = '';
protected string $opera = '=';
/** @var array|mixed */
protected $value;
const INT_TYPE = ['bit', 'bool', 'tinyint', 'smallint', 'mediumint', 'int', 'bigint', 'float', 'double', 'decimal', 'timestamp'];
protected $attributes = [];
protected array $attributes = [];
abstract public function builder();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
/**
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
+2 -2
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
@@ -12,7 +12,7 @@ use Snowflake\Core\Str;
class LLikeCondition extends Condition
{
public $pos = '';
public string $pos = '';
/**
* @return string
+2 -2
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
@@ -12,7 +12,7 @@ use Snowflake\Core\Str;
class LikeCondition extends Condition
{
public $pos = '';
public string $pos = '';
/**
* @return string
+2 -2
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
@@ -10,7 +10,7 @@ namespace Database\Condition;
class MathematicsCondition extends Condition
{
public $type = '';
public string $type = '';
/**
* @return mixed
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
+2 -2
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
@@ -12,7 +12,7 @@ use Snowflake\Core\Str;
class NotLikeCondition extends Condition
{
public $pos = '';
public string $pos = '';
/**
* @return string
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
+2 -2
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
@@ -12,7 +12,7 @@ use Snowflake\Core\Str;
class RLikeCondition extends Condition
{
public $pos = '';
public string $pos = '';
/**
* @return string