Overview

Namespaces

  • Coast
    • App
      • Access
      • Executable
    • Controller
    • Csrf
    • Dir
    • Feed
    • File
    • Filter
      • Rule
    • Http
    • Image
    • Model
      • Exception
    • Resolver
    • Router
    • Sitemap
    • Transformer
      • Rule
    • Validator
      • Rule
    • View

Classes

  • ArrayType
  • BooleanType
  • Count
  • Custom
  • DateTime
  • DecimalType
  • EmailAddress
  • Equals
  • File
  • FloatType
  • Func
  • Hostname
  • In
  • IntegerType
  • IpAddress
  • Length
  • Max
  • Min
  • Not
  • NumberType
  • ObjectType
  • Password
  • Range
  • Recaptcha
  • Regex
  • Set
  • StringType
  • Upload
  • Url
  • Overview
  • Namespace
  • Class
  • Deprecated
  • Todo

Class BooleanType

Coast\Validator\Rule implements JsonSerializable
Extended by Coast\Validator\Rule\BooleanType
Namespace: Coast\Validator\Rule
Located at Validator/Rule/BooleanType.php
Methods summary
public
# __construct( array $true = null, array $false = null )

Overrides

Coast\Validator\Rule::__construct()
public
# true( array $true = null )
public
# false( array $false = null )
protected
# _validate( $value )
Methods inherited from Coast\Validator\Rule
__invoke(), error(), errors(), isValid(), jsonSerialize(), name(), params(), validate()
Properties summary
protected array $_true
# [true, 'true', 1, '1']
protected array $_false
# [false, 'false', 0, '0']
Properties inherited from Coast\Validator\Rule
$_errors, $_name
Coast API Documentation API documentation generated by ApiGen