| @@ -31,8 +31,24 @@ | ||
| 31 | 31 | */ |
| 32 | 32 | private $languages; |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | + * The namespace of this controller's route. Override the parent class property with a default value. | |
| 36 | + * | |
| 37 | + * @var string | |
| 38 | + * @phpstan-var 'pll/v1' | |
| 39 | + */ | |
| 40 | + protected $namespace = 'pll/v1'; | |
| 41 | + | |
| 42 | + /** | |
| 43 | + * The base of this controller's route. Override the parent class property with a default value. | |
| 44 | + * | |
| 45 | + * @var string | |
| 46 | + * @phpstan-var 'settings' | |
| 47 | + */ | |
| 48 | + protected $rest_base = 'settings'; | |
| 49 | + | |
| 50 | + /** | |
| 35 | 51 | * Constructor. |
| 36 | 52 | * |
| 37 | 53 | * @since 3.7 |
| 38 | 54 | * |
| @@ -38,10 +54,8 @@ | ||
| 38 | 54 | * |
| 39 | 55 | * @param PLL_Model $model Polylang's model. |
| 40 | 56 | */ |
| 41 | 57 | public function __construct( PLL_Model $model ) { |
| 42 | - $this->namespace = 'pll/v1'; | |
| 43 | - $this->rest_base = 'settings'; | |
| 44 | 58 | $this->options = $model->options; |
| 45 | 59 | $this->languages = $model->languages; |
| 46 | 60 | } |
| 47 | 61 | |