Overview

Namespaces

  • Larislackers
    • BinanceApi
      • Enums
      • Exception

Classes

  • BasicEnum
  • BinanceApi
  • ConnectionDetails
  • Overview
  • Namespace
  • Class

Class BasicEnum

BasicEnum, used to contain the logic for validating keys/values against an enum. Must be extended by all future enums.

Direct known subclasses

Larislackers\BinanceApi\Enums\BinanceApi, Larislackers\BinanceApi\Enums\ConnectionDetails
Abstract
Namespace: Larislackers\BinanceApi\Enums
Package: Larislackers\BinanceApi\Enums
Located at Enums/BasicEnum.php
Methods summary
public static boolean
# isValidName( string $name, boolean $strict = false )

Validates the existence of a given attribute name against an enum. Is not strict by default.

Validates the existence of a given attribute name against an enum. Is not strict by default.

Parameters

$name
The attribute to check.
$strict
Strict mode.

Returns

boolean
public static boolean
# isValidValue( string $value, boolean $strict = true )

Validates the existence of a given value against an enum. Is not strict by default, in case of strings.

Validates the existence of a given value against an enum. Is not strict by default, in case of strings.

Parameters

$value
The value to check.
$strict
Strict mode.

Returns

boolean
API documentation generated by ApiGen