@@ -24,11 +24,19 @@ |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | // phpcs:ignore Squiz.Commenting.FunctionComment.Missing |
| 27 | + |
|
| 28 | + /** |
|
| 29 | + * @param string $name |
|
| 30 | + */ |
|
| 27 | 31 | public static function get( $name ) { |
| 28 | 32 | return self::$capabilities[ $name ]; |
| 29 | 33 | } |
| 30 | 34 | |
| 31 | 35 | // phpcs:ignore Squiz.Commenting.FunctionComment.Missing |
| 36 | + |
|
| 37 | + /** |
|
| 38 | + * @param Capability $capability |
|
| 39 | + */ |
|
| 32 | 40 | public static function register( $capability ) { |
| 33 | 41 | self::$capabilities[ $capability->name ] = $capability; |
| 34 | 42 | } |