public function __construct(DataModel $model) { $this->model = $model; $this->className = get_class($model); }