MvcLite\Error

Class to handle errors throughout the site

Synopsis

class Error extends ObjectAbstract {
  • // members
  • protected array $errors = ;
  • // Inherited methods from ObjectAbstract
  • public final void __get()
  • public final void __set()
  • public final void __call()
  • public void __toString()
  • public string identify()
  • // Inherited methods from Singleton
  • public static Singleton getInstance()
}

Hierarchy

Coverage

Methods 100% 3 / 3
Lines 100% 20 / 20

Constants

Name Value
MSG_ERR_IDENTIFY 'Descendents must implement the identify method'

Members

protected

  • $errors — array
    Holder for all the errors that have occured for the request.
  • $instanceMvcLite\Traits\Singleton
    Static instance variable

Methods

protected

  • addError() — Adds errors to the instance's error property.

public

Inherited from MvcLite\ObjectAbstract

public

  • __call() — Overriding the __call magic method
  • __get() — Overriding the __get magic method
  • __set() — Overriding the __set magic method
  • __toString() — returns a string representation of the object
  • identify() — method used to identify the object instance

Inherited from MvcLite\Traits\Singleton

public

History