Completed
Push — master ( 56e121...0ac51f )
by Timur
02:34
created

CreateFirewallRuleCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 26
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A identifiedAs() 0 4 1
A usingPort() 0 4 1
1
<?php
2
3
namespace Laravel\Forge\Firewall\Commands;
4
5
class CreateFirewallRuleCommand extends FirewallRuleCommand
6
{
7
    /**
8
     * Set rule name.
9
     *
10
     * @param string $name
11
     *
12
     * @return static
13
     */
14
    public function identifiedAs(string $name)
15
    {
16
        return $this->attachPayload('name', $name);
17
    }
18
19
    /**
20
     * Set rule port number.
21
     *
22
     * @param int $port
23
     *
24
     * @return static
25
     */
26
    public function usingPort(int $port)
27
    {
28
        return $this->attachPayload('port', $port);
29
    }
30
}
31