public function __construct(AbstractModel $model, array &$attributes) { $this->model = $model; $this->attributes =& $attributes; }