| Total Complexity | 8 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class Kirki_Field_Dimensions extends Kirki_Field { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Sets the control type. |
||
| 19 | * |
||
| 20 | * @access protected |
||
| 21 | */ |
||
| 22 | protected function set_type() { |
||
| 23 | $this->type = 'kirki-dimensions'; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Sets the $sanitize_callback. |
||
| 28 | * |
||
| 29 | * @access protected |
||
| 30 | */ |
||
| 31 | protected function set_sanitize_callback() { |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Sanitizes the value. |
||
| 43 | * |
||
| 44 | * @access public |
||
| 45 | * @param array $value The value. |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | public function sanitize( $value ) { |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Set the choices. |
||
| 59 | * Adds a pseudo-element "controls" that helps with the JS API. |
||
| 60 | * |
||
| 61 | * @access protected |
||
| 62 | */ |
||
| 63 | protected function set_choices() { |
||
| 72 |