mixed) */ private $statuses = array(); /** * Adds a new status to the list of statuses. * * @param string $class * @param mixed|array(mixed) $status */ public function append( $class, $status ) { if ( is_array( $status ) ) { $this->statuses = array_merge( $this->statuses, $status ); } else { $this->statuses[] = array( $class => $status ); } } /** * Returns the list of authentication statuses. * * The format of the returned array is array( class => code ). * * Example: * * array( * 'ezcAuthenticationSessionFilter' => ezcAuthenticationSessionFilter::STATUS_EMPTY, * 'ezcAuthenticationDatabaseFilter' => ezcAuthenticationDatabaseFilter::STATUS_PASSWORD_INCORRECT * ); * * * @return array(string=>mixed) */ public function get() { return $this->statuses; } } ?>