\Localgod\TickType

Type handler for Tick

This class manages types in Tick. PHP's automatic type conversion is not always convenient when talking to a data storage, so we attempt to "force" some kind of type checking and conversion for values handled by Tick.

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
isValidType()
getClassComment()
No protected properties found
N/A
No private methods found
$classComment
N/A

Properties

$classComment

$classComment : string

Class comment

Type

string

Methods

isValidType()

isValidType(string  $property, mixed  $value) : boolean

Check if value is valid for the given property

Parameters

string $property

Name of property

mixed $value

Value to test

Throws

\Localgod\Tick\RangeException

if the value dos not fit the specified size

\InvalidArgumentException

if the value dos not mathc the property declartion

Returns

boolean

getClassComment()

getClassComment() : string

Get class comment

Returns

string