/** * Init column. * * @param Entity $entity * @param string $id * @param \Kalnoy\Cruddy\Contracts\Field $field */ public function __construct(Entity $entity, $id, Field $field) { parent::__construct($entity, $id); $this->field = $field; }
/** * Init the column. * * @param Entity $entity * @param string $id * @param string|\Closure $accessor */ public function __construct(Entity $entity, $id, $accessor = null) { parent::__construct($entity, $id); $this->accessor = $accessor; }