| 1 | <?php |
||
| 7 | class Builder { |
||
| 8 | // public $name; |
||
| 9 | // public $available; |
||
| 10 | |||
| 11 | function __construct() { |
||
| 17 | |||
| 18 | function require_wp_role( $wp_role ) { |
||
| 22 | |||
| 23 | function require_wp_capability( $wp_capability ) { |
||
| 27 | |||
| 28 | /** |
||
| 29 | * For traditional Jetpack plans (free, personal, premium, professional ) this |
||
| 30 | * specifies the minimum plan required in required to perform the action |
||
| 31 | */ |
||
| 32 | function require_minimum_jetpack_plan( $jetpack_plan_level ) { |
||
| 36 | } |
||
| 37 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: