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, array $config = null)
$this->entity = $entity;
if ($config !== null) {
$this->config = $config;
}
public function dataToDatabase($data)
return $data;
public function dataFromDatabase($data)