\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
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(  name, \App\NetworkModule\Entities\InterfaceTypes  type, \App\NetworkModule\Entities\InterfaceStates  state,   connectionName) : 

Network interface entity constructor

Parameters

name

Network interface name

\App\NetworkModule\Entities\InterfaceTypes type

Network interface type

\App\NetworkModule\Entities\InterfaceStates state

Network interface state

connectionName

Network connection name

Returns

fromString()

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

Creates a new network interface entity from the nmcli row

Parameters

string

nmcli row

Returns

\App\NetworkModule\Entities\InterfaceStatus —

Network interface

getName()

getName() : 

Returns the network interface name

Returns

Network interface name

getType()

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

Returns the network interface type

Returns

\App\NetworkModule\Entities\InterfaceTypes —

Network interface type

getState()

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

Returns the network interface state

Returns

\App\NetworkModule\Entities\InterfaceStates —

Network interface state

getConnectionName()

getConnectionName() : 

Returns the network connection name

Returns

Network connection name