C

$ DtionList#container — Property in class DtionList

Internal container

DtionList::count() — Method in class DtionList
CriterionDoesntMatchException — Class in namespace Dtion\Exceptions

Exception thrown when a criteria doesn't match any Dtion in DtionList.

D

Dtionable — Class in namespace Dtion\Contracts

This class stores the simplest form of a a condition (lower and upper boundaries) and a result.

Dtion — Class in namespace Dtion

This class stores a condition (lower and upper boundaries) and a result.

DtionList — Class in namespace Dtion

This class stores a list of Dtion, allowing the user to find() the corresponding Dtion (therefor the result) among multiple conditions.

F

Dtionable::fromArray() — Method in class Dtionable

Instanciate a Dtionable from an associative array

DtionList::find() — Method in class DtionList

Find the first dtion to match $critera, and returns it or null otherwise.

DtionList::fromArray() — Method in class DtionList

Instanciate from array of arrays, given by self::toArray() method

L

$ Dtionable#lower — Property in class Dtionable

Lower boundary

M

Dtionable::match() — Method in class Dtionable

Match a criterion with lower and upper boundaries.

Dtion::make() — Method in class Dtion

Static mode to instanciate a Dtion

Dtion::match() — Method in class Dtion

Match a criterion with lower and upper boundaries.

DtionList::make() — Method in class DtionList

Static mode to instanciate a Dtion

P

DtionList::push() — Method in class DtionList

Push a Dtion to the list.

R

$ Dtionable#result — Property in class Dtionable

Result of the condition

Dtionable::result() — Method in class Dtionable

Return the stored result

DtionList::resultFor() — Method in class DtionList

Find the first dtion to match $critera, and returns it's result.

T

Dtionable::toArray() — Method in class Dtionable

Get the instance as an array.

DtionList::toArray() — Method in class DtionList

U

$ Dtionable#upper — Property in class Dtionable

Upper boundary

_

Dtionable::__construct() — Method in class Dtionable

Instanciate a Dtionable with a lower boundary, upper boundary and the result when the criterion is between these boundaries.

Dtionable::__serialize() — Method in class Dtionable

This method defines a serialization-friendly arbitrary representation of the object in form of an array.

Dtionable::__unserialize() — Method in class Dtionable

This method is passed the restored array that was returned from __serialize(). It may then restore the properties of the object from that array as appropriate.

DtionList::__construct() — Method in class DtionList

Construct an empty Dtion

DtionList::__serialize() — Method in class DtionList

This method defines a serialization-friendly arbitrary representation of the object in form of an array.

DtionList::__unserialize() — Method in class DtionList

This method is passed the restored array that was returned from __serialize(). It may then restore the properties of the object from that array as appropriate.