RedBeanPHP\Repository::__construct PHP Method

__construct() public method

Creates a new instance of the bean respository class.
public __construct ( redbeanphp\OODB $oodb, RedBeanPHP\QueryWriter $writer ) : void
$oodb redbeanphp\OODB
$writer RedBeanPHP\QueryWriter the Query Writer to use for this repository
return void
    public function __construct(OODB $oodb, QueryWriter $writer)
    {
        $this->writer = $writer;
        $this->oodb = $oodb;
    }