| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class GridFieldHtmlFragment implements GridField_HTMLProvider |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Fragment to write the html fragment to. |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $targetFragment; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * An HTML fragment to render |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $htmlFragment; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $targetFragment Fragment to write the html fragment to. |
||
| 31 | * @param string $htmlFragment An HTML fragment to render |
||
| 32 | */ |
||
| 33 | public function __construct($targetFragment, $htmlFragment) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param GridField $gridField |
||
| 41 | * @return array |
||
| 42 | */ |
||
| 43 | public function getHTMLFragments($gridField) |
||
| 48 |