\App\NetworkModule\EntitiesInterfaceStatus

Network interface entity

Summary

Methods
Properties
Constants
__construct()
fromString()
getName()
getType()
getState()
getConnectionName()
No public properties found
No constants found
No protected methods found
$name
$type
$state
$connectionName
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

Type

normal — Network interface name

$type

$type : \App\NetworkModule\Enums\InterfaceTypes

Type

normal — Network interface type

$state

$state : \App\NetworkModule\Enums\InterfaceStates

Type

normal — Network interface status

$connectionName

$connectionName : string

Type

normal — Network connection name

Methods

__construct()

__construct(string  $name, \App\NetworkModule\Enums\InterfaceTypes  $type, \App\NetworkModule\Enums\InterfaceStates  $state, string  $connectionName) : mixed

Network interface entity constructor

Parameters

string $name

Network interface name

\App\NetworkModule\Enums\InterfaceTypes $type

Network interface type

\App\NetworkModule\Enums\InterfaceStates $state

Network interface state

string $connectionName

Network connection name

Returns

mixed

fromString()

fromString(string  $string) : \App\NetworkModule\Entities\InterfaceStatus

Creates a new network interface entity from the nmcli row

Parameters

string $string

nmcli row

Returns

\App\NetworkModule\Entities\InterfaceStatus —

Network interface

getName()

getName() : string

Returns the network interface name

Returns

string —

Network interface name

getType()

getType() : \App\NetworkModule\Enums\InterfaceTypes

Returns the network interface type

Returns

\App\NetworkModule\Enums\InterfaceTypes —

Network interface type

getState()

getState() : \App\NetworkModule\Enums\InterfaceStates

Returns the network interface state

Returns

\App\NetworkModule\Enums\InterfaceStates —

Network interface state

getConnectionName()

getConnectionName() : string

Returns the network connection name

Returns

string —

Network connection name