| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public function createFromArray(array $network): AbstractNetwork |
||
| 46 | { |
||
| 47 | $this->ssid = $network[1]; |
||
| 48 | $this->bssid = $network[2]; |
||
| 49 | $this->channel = (int) $network[4]; |
||
| 50 | $this->security = $network[7]; |
||
| 51 | $this->securityFlags = $network[8].' '.$network[9]; |
||
| 52 | $this->dbm = $network[6]; |
||
| 53 | $this->quality = to_quality((int) $network[6]); |
||
| 54 | $this->frequency = (int) $network[5]; |
||
| 55 | $this->connected = ($network[0] == self::POSITIVE_CONNECTION_FLAG); |
||
| 56 | |||
| 57 | return $this; |
||
| 58 | } |
||
| 60 |