Async::async()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
namespace diecoding\aws\s3\base\commands\traits;
4
5
/**
6
 * Trait Async
7
 *
8
 * @package diecoding\aws\s3\base\commands\traits
9
 */
10
trait Async
11
{
12
    /** @var bool */
13
    private $isAsync = false;
14
15
    /**
16
     * @return $this
17
     */
18
    final public function async()
19
    {
20
        $this->isAsync = true;
21
22
        return $this;
23
    }
24
25
    /**
26
     * @return bool
27
     */
28
    final public function isAsync(): bool
29
    {
30
        return $this->isAsync;
31
    }
32
}
33