You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
682 B
PHP
36 lines
682 B
PHP
<?php
|
|
|
|
namespace Artmark\Forms\Fields;
|
|
|
|
use Artmark\Forms\AbstractChoiceOption;
|
|
|
|
/**
|
|
* Description of RadioOption
|
|
*
|
|
* @author Andrey Pokidov <pokidov@e-traffic.ru>
|
|
*/
|
|
class RadioOption extends AbstractChoiceOption
|
|
{
|
|
/**
|
|
* The field which is the owner of the option
|
|
* @var RadioField
|
|
*/
|
|
private $field;
|
|
|
|
public function __construct(RadioField $field, $value, $text)
|
|
{
|
|
parent::__construct($value, $text);
|
|
|
|
$this->field = $field;
|
|
}
|
|
|
|
/**
|
|
* Метод возвращает поле типа RadioField
|
|
* @return RadioField
|
|
*/
|
|
public function field()
|
|
{
|
|
return $this->field;
|
|
}
|
|
}
|