for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Terranet\Administrator\Field;
class Radio extends Generic
{
/**
* @var array
*/
protected $options = [];
* @return array
public function getOptions(): array
return (array) $this->options;
}
* @param array $options
* @return self
public function setOptions(array $options): self
$this->options = $options;
return $this;
public function onIndex()
return [
'options' => $this->getOptions(),
];
public function onView()
return $this->onIndex();
public function onEdit()