for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SimpleCrud\Fields;
use SimpleCrud\FieldInterface;
use SimpleCrud\Entity;
/**
* Generic field. The data won't be converted.
*/
class Field implements FieldInterface
{
protected $entity;
protected $config = [];
* {@inheritdoc}
public function __construct(Entity $entity)
$this->entity = $entity;
}
public function setConfig(array $config)
$this->config = $config;
public function getConfig()
return $this->config;
public function dataToDatabase($data)
return $data;
public function dataFromDatabase($data)