for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace EasyDictionary\DataProvider;
use EasyDictionary\Interfaces\DataProviderFilterInterface;
use EasyDictionary\Interfaces\DataProviderInterface;
/**
* Class Simple
*
* @package EasyDictionary\DataProvider
*/
class Simple implements DataProviderInterface
{
protected $data = [];
* @param array $datProviderConfig
public function __construct($datProviderConfig = [])
$this->setData($datProviderConfig['items'] ?? []);
}
* @param DataProviderFilterInterface|null $filter
* @return iterable
public function getData(DataProviderFilterInterface $filter = null): iterable
return $this->data;
* @param iterable $data
* @return $this
public function setData(iterable $data = [])
$this->data = $data;
return $this;