| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class Taxonomy extends AbstractTaxonomy { |
||
| 21 | |||
| 22 | use Labels\Taxonomy; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Get args. |
||
| 26 | * |
||
| 27 | * @return array |
||
| 28 | */ |
||
| 29 | public function get_args() : array { |
||
| 30 | return [ |
||
| 31 | 'labels' => $this->get_labels( |
||
| 32 | __( 'Categoria', 'app' ), |
||
| 33 | __( 'Categorias', 'app' ) |
||
| 34 | ), |
||
| 35 | 'public' => true, |
||
| 36 | 'show_in_rest' => true, |
||
| 37 | 'hierarchical' => true, |
||
| 38 | ]; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Get Taxonomy. |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function get_taxonomy() : string { |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Get object type. |
||
| 52 | * |
||
| 53 | * Passed for $object_type param, it can be an array or a string. |
||
| 54 | * |
||
| 55 | * @return array|string |
||
| 56 | */ |
||
| 57 | public function get_object_type() { |
||
| 59 | } |
||
| 60 | } |
||
| 61 |