for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GFG\Mapper\Data\Type;
/**
* For single structures like:
*
* $data = [
* 'brand' => 1
* ];
* $structure = [
* 'brand' => [
* 'type' => 'single',
* 'prefix' => 'brand'
* ]
*/
class Single extends Base
{
* {@inheritdoc}
public function run(&$data, $key = null)
$data = $this->get($key ?: $data);
}