| @@ -29,10 +29,16 @@ | ||
| 29 | 29 | interface I_Capable { |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Finds out if I have the given capability. |
| 33 | - * | |
| 33 | + * | |
| 34 | + * @since 3.0.0 the optional $object parameter has been added (experimental) | |
| 35 | + * @since 3.0.0 the optional $type parameter has been added (experimental) | |
| 36 | + * | |
| 34 | 37 | * @param string|int $capability capability or capability id |
| 38 | + * @param mixed|null $object (experimental, declaration might change) | |
| 39 | + * @param mixed|null $args (experimental, declaration might change) | |
| 40 | + * | |
| 35 | 41 | * @return true if I can, otherwise false |
| 36 | 42 | */ |
| 37 | - public function can( $capability ); | |
| 38 | -} | |
| 43 | + public function can( $capability, $object = null, $args = null ); | |
| 44 | +} | |