Isswp101\Persimmon\Model::__construct PHP Method

__construct() public method

Create a new instance.
public __construct ( Isswp101\Persimmon\DAL\IDAL $dal, array $attributes = [] )
$dal Isswp101\Persimmon\DAL\IDAL
$attributes array
    public function __construct(IDAL $dal, array $attributes = [])
    {
        $this->_dal = $dal;
        $this->fill($attributes);
    }

Usage Example

 public function __construct(IDAL $dal, array $attributes = [])
 {
     $this->validateModelEndpoint();
     parent::__construct($dal, $attributes);
 }