\App\NetworkModule\EntitiesConnectionDetail

Detailed network connection entity

Summary

Methods
Properties
Constants
__construct()
fromForm()
fromNmCli()
getId()
getUuid()
getType()
getInterfaceName()
getIpv4()
getIpv6()
toForm()
toNmCli()
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(  id, \App\NetworkModule\Entities\UuidInterface  uuid, \App\NetworkModule\Entities\ConnectionTypes  type,   name, \App\NetworkModule\Entities\IPv4Connection  ipv4, \App\NetworkModule\Entities\IPv6Connection  ipv6) : 

Network connection entity constructor

Parameters

id

Network connection ID

\App\NetworkModule\Entities\UuidInterface uuid

Network connection UUID

\App\NetworkModule\Entities\ConnectionTypes type

Network connection type

name

Network connection name

\App\NetworkModule\Entities\IPv4Connection ipv4

IPv4 network connection entity

\App\NetworkModule\Entities\IPv6Connection ipv6

IPv6 network connection entity

Returns

fromForm()

fromForm(\stdClass|\App\NetworkModule\Entities\ArrayHash  form) : 

Sets the values from the network connection configuration form

Parameters

\stdClass|\App\NetworkModule\Entities\ArrayHash form

Network connection configuration form values

Returns

fromNmCli()

fromNmCli(  nmCli) : \App\NetworkModule\Entities\ConnectionDetail

Creates a new detailed network connection entity from nmcli connection configuration

Parameters

nmCli

nmcli connection configuration

Returns

\App\NetworkModule\Entities\ConnectionDetail —

Detailed network connection entity

getId()

getId() : 

Returns the network connection ID

Returns

Network connection ID

getUuid()

getUuid() : \App\NetworkModule\Entities\UuidInterface

Returns the network connection UUID

Returns

\App\NetworkModule\Entities\UuidInterface —

Network connection UUID

getType()

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

Returns the network connection type

Returns

\App\NetworkModule\Entities\ConnectionTypes —

Network connection type

getInterfaceName()

getInterfaceName() : 

Returns the network connection name

Returns

Network connection name

getIpv4()

getIpv4() : \App\NetworkModule\Entities\IPv4Connection

Returns the IPv4 network connection entity

Returns

\App\NetworkModule\Entities\IPv4Connection —

IPv4 network connection entity

getIpv6()

getIpv6() : \App\NetworkModule\Entities\IPv6Connection

Returns the IPv6 network connection entity

Returns

\App\NetworkModule\Entities\IPv6Connection —

IPv4 network connection entity

toForm()

toForm() : mixed|string|string|int

Converts network connection entity to an array for the form

Returns

mixed|string|string|int —

Array for the form

toNmCli()

toNmCli() : 

Converts the network connection entity to nmcli configuration string

Returns

nmcli configuration