PluginProbe
Polylang / trunk
Polylang vtrunk
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | src/modules/REST/V1/Settings.php +16 -2 3.8.8 → trunk View file →
@@ -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