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

CreateDaemonCommand   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 start() 0 4 1
A runningAs() 0 4 1
1
<?php
2
3
namespace Laravel\Forge\Daemons\Commands;
4
5
class CreateDaemonCommand extends DaemonCommand
6
{
7
    /**
8
     * Set the command.
9
     *
10
     * @param string $command
11
     *
12
     * @return static
13
     */
14
    public function start(string $command)
15
    {
16
        return $this->attachPayload('command', $command);
17
    }
18
19
    /**
20
     * Set the user of command.
21
     *
22
     * @param string $user
23
     *
24
     * @return static
25
     */
26
    public function runningAs(string $user)
27
    {
28
        return $this->attachPayload('user', $user);
29
    }
30
}
31