DB\Jig\Mapper::__construct PHP Method

__construct() public method

Instantiate class
public __construct ( Jig $db, $file ) : void
$db DB\Jig object
$file string
return void
    function __construct(\DB\Jig $db, $file)
    {
        $this->db = $db;
        $this->file = $file;
        $this->reset();
    }

Usage Example

Example #1
0
 public function __construct()
 {
     $db = new \DB\Jig('data/');
     parent::__construct($db, 'config.json');
     $this->load();
 }
All Usage Examples Of DB\Jig\Mapper::__construct