Completed
Push — try/capabilities ( 5ae69f )
by
unknown
53:59 queued 47:44
created
packages/capabilities/src/Capabilities.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
 		$this->rules = [];
14 14
 	}
15 15
 
16
+	/**
17
+	 * @param string $name
18
+	 */
16 19
 	static function get( $name ) {
17 20
 		return new Capability( $name, true );
18 21
 	}
Please login to merge, or discard this patch.
packages/capabilities/src/Capabilities/Builder.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -15,11 +15,17 @@
 block discarded – undo
15 15
 		return new Builder();
16 16
 	}
17 17
 
18
+	/**
19
+	 * @param string $wp_role
20
+	 */
18 21
 	function require_wp_role( $wp_role ) {
19 22
 		$this->capabilities->add_rule( new WPRoleRule( $wp_role ) );
20 23
 		return $this;
21 24
 	}
22 25
 
26
+	/**
27
+	 * @param string $wp_capability
28
+	 */
23 29
 	function require_wp_capability( $wp_capability ) {
24 30
 		$this->capabilities->add_rule( new WPCapabilityRule( $wp_capability ) );
25 31
 		return $this;
Please login to merge, or discard this patch.
packages/capabilities/src/Capabilities/Capability.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@
 block discarded – undo
6 6
 	public $name;
7 7
 	public $available;
8 8
 
9
+	/**
10
+	 * @param boolean $available
11
+	 */
9 12
 	function __construct( $name, $available ) {
10 13
 		$this->name      = $name;
11 14
 		$this->available = $available;
Please login to merge, or discard this patch.