addAllowedNetworksToBeacon()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Neo\EarlyAccess\Traits;
4
5
use Neo\EarlyAccess\Facades\EarlyAccess;
6
7
trait InteractsWithEarlyAccess
8
{
9
    /**
10
     * @return bool
11
     */
12
    public function isEarlyAccessEnabled(): bool
13
    {
14
        return EarlyAccess::isEnabled();
15
    }
16
17
    /**
18
     * @param array $data
19
     * @return mixed
20
     */
21
    public function saveBeacon(array $data = [])
22
    {
23
        return EarlyAccess::saveBeacon($data);
24
    }
25
26
    /**
27
     * @return mixed
28
     */
29
    public function deleteBeacon()
30
    {
31
        return EarlyAccess::deleteBeacon();
32
    }
33
34
    /**
35
     * @return mixed
36
     */
37
    public function getBeaconDetails()
38
    {
39
        return EarlyAccess::getBeaconDetails();
40
    }
41
42
    /**
43
     * @return mixed
44
     */
45
    public function getAllowedNetworks()
46
    {
47
        return EarlyAccess::allowedNetworks();
48
    }
49
50
    /**
51
     * @param array $networks
52
     * @return mixed
53
     */
54
    public function addAllowedNetworksToBeacon(array $networks)
55
    {
56
        return EarlyAccess::addAllowedNetworksToBeacon($networks);
57
    }
58
}
59