Passwd_Driver::__construct PHP Method

__construct() public method

Constructor.
public __construct ( array $params = [] )
$params array A hash containing connection parameters.
    public function __construct(array $params = array())
    {
        $this->_params = $params;
    }

Usage Example

Example #1
0
 /**
  * @param array $params  Driver parameters:
  *   - drivers: (array) Array of Passwd_Driver objects.
  *
  * @throws Passwd_Exception
  */
 public function __construct(array $params = array())
 {
     if (!isset($params['drivers']) || !is_array($params['drivers'])) {
         throw new Passwd_Exception(_("Required 'drivers' is misconfigured in Composite configuration."));
     }
     parent::__construct($params);
 }
All Usage Examples Of Passwd_Driver::__construct