for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pfilsx\DataGrid\Grid\Items;
use Pfilsx\DataGrid\DataGridException;
class ArrayGridItem extends DataGridItem
{
public function has(string $attribute): bool
return array_key_exists($attribute, $this->data);
}
public function get(string $attribute)
if ($this->has($attribute)){
return $this->data[$attribute];
throw new DataGridException('Unknown property ' . $attribute);