Piwik\Plugins\Login\Auth::__construct PHP Method

__construct() public method

public __construct ( )
    public function __construct()
    {
        $this->userModel = new Model();
        $this->passwordHelper = new Password();
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param Model|null $userModel
  */
 public function __construct(Model $userModel = null)
 {
     parent::__construct();
     if ($userModel === null) {
         $userModel = new Model();
     }
     $this->userModel = $userModel;
 }