Skip to content

Commit

Permalink
feat(Validator, experimental): 移除 BASIC_TYPE 常量
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Aug 2, 2022
1 parent b6e2236 commit c015f0a
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 57 deletions.
7 changes: 0 additions & 7 deletions lib/BaseValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ abstract class BaseValidator extends Base
{
use RetTrait;

/**
* Whether the validator cant be
*
* @experimental
*/
public const BASIC_TYPE = false;

/**
* The message added when the input required a stringify value
*
Expand Down
5 changes: 0 additions & 5 deletions lib/IsAnyDateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
*/
class IsAnyDateTime extends BaseValidator
{
/**
* {@inheritdoc}
*/
public const BASIC_TYPE = true;

/**
* Message occurred when thrown "Failed to parse time string" exception
*
Expand Down
5 changes: 0 additions & 5 deletions lib/IsArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
*/
class IsArray extends BaseValidator
{
/**
* {@inheritdoc}
*/
public const BASIC_TYPE = true;

protected $notArrayMessage = '%name% must be an array';

protected $negativeMessage = '%name% must not be an array';
Expand Down
5 changes: 0 additions & 5 deletions lib/IsBool.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
*/
class IsBool extends BaseValidator
{
/**
* {@inheritdoc}
*/
public const BASIC_TYPE = true;

protected $notBoolMessage = '%name% must be a bool value';

protected $negativeMessage = '%name% must not be a bool value';
Expand Down
5 changes: 0 additions & 5 deletions lib/IsChar.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
*/
class IsChar extends BaseValidator
{
/**
* {@inheritdoc}
*/
public const BASIC_TYPE = true;

/**
* @var int|null
*/
Expand Down
5 changes: 0 additions & 5 deletions lib/IsDecimal.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
*/
class IsDecimal extends BaseValidator
{
/**
* {@inheritdoc}
*/
public const BASIC_TYPE = true;

protected $invalidMessage = '%name% must be decimal';

protected $negativeMessage = '%name% must not be decimal';
Expand Down
5 changes: 0 additions & 5 deletions lib/IsInt.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
*/
class IsInt extends BaseValidator
{
/**
* {@inheritdoc}
*/
public const BASIC_TYPE = true;

protected $notIntMessage = '%name% must be an integer value';

protected $negativeMessage = '%name% must not be an integer value';
Expand Down
5 changes: 0 additions & 5 deletions lib/IsNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
*/
class IsNumber extends BaseValidator
{
/**
* {@inheritdoc}
*/
public const BASIC_TYPE = true;

protected $notNumberMessage = '%name% must be valid number';

protected $scaleMessage = '%name% can have at most %scale% decimal(s)';
Expand Down
5 changes: 0 additions & 5 deletions lib/IsObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
*/
class IsObject extends BaseValidator
{
/**
* {@inheritdoc}
*/
public const BASIC_TYPE = true;

protected $notObjectMessage = '%name% must be an object';

protected $negativeMessage = '%name% must not be an object';
Expand Down
5 changes: 0 additions & 5 deletions lib/IsString.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
*/
class IsString extends BaseValidator
{
/**
* {@inheritdoc}
*/
public const BASIC_TYPE = true;

/**
* @var int|null
*/
Expand Down
5 changes: 0 additions & 5 deletions lib/IsUNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
*/
class IsUNumber extends IsNumber
{
/**
* {@inheritdoc}
*/
public const BASIC_TYPE = true;

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit c015f0a

Please sign in to comment.