Controllers\xAPI\BaseController::__construct PHP Method

__construct() public method

Constructs a new xAPI controller.
public __construct ( )
    public function __construct()
    {
        parent::__construct();
        $this->setMethod();
    }

Usage Example

 /**
  * @override
  * Constructs a new StatementController.
  * @param StatementRepository $statement
  */
 public function __construct(Statement $statement)
 {
     parent::__construct();
     $this->statements = $statement;
     $this->index_controller = new StatementIndexController($statement);
     $this->store_controller = new StatementStoreController($statement);
 }
All Usage Examples Of Controllers\xAPI\BaseController::__construct