| 1 | <?php  | 
            ||
| 19 | class FieldContextEntry implements SingletonInterface  | 
            ||
| 20 | { | 
            ||
| 21 | /**  | 
            ||
| 22 | * @var Field  | 
            ||
| 23 | */  | 
            ||
| 24 | protected $field;  | 
            ||
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * @var array  | 
            ||
| 28 | */  | 
            ||
| 29 | protected $options = [];  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * @param Field $field  | 
            ||
| 33 | */  | 
            ||
| 34 | public function __construct(Field $field)  | 
            ||
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * Returns the current field which was defined by the `FieldViewHelper`.  | 
            ||
| 41 | *  | 
            ||
| 42 | * Returns null if no current field was found.  | 
            ||
| 43 | *  | 
            ||
| 44 | * @return Field|null  | 
            ||
| 45 | */  | 
            ||
| 46 | public function getField()  | 
            ||
| 50 | |||
| 51 | /**  | 
            ||
| 52 | * @param string $name  | 
            ||
| 53 | * @param mixed $value  | 
            ||
| 54 | */  | 
            ||
| 55 | public function setOption($name, $value)  | 
            ||
| 59 | |||
| 60 | /**  | 
            ||
| 61 | * @return array  | 
            ||
| 62 | */  | 
            ||
| 63 | public function getOptions()  | 
            ||
| 67 | }  | 
            ||
| 68 |