| 1 | <?php |
||
| 14 | class MslsOptionsTaxTerm extends MslsOptionsTax { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Base option |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $base_option = 'tag_base'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Base definition |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $base_defined = 'tag'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Rewrite with front |
||
| 30 | * @var bool |
||
| 31 | */ |
||
| 32 | public $with_front = true; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Check and correct URL |
||
| 36 | * |
||
| 37 | * @param string $url |
||
| 38 | * @param MslsOptions $options |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function check_base( $url, $options ) { |
||
| 74 | |||
| 75 | } |
||
| 76 |
Since your code implements the magic setter
_set, this function will be called for any write access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.