\App\NetworkModule\EntitiesIPv4Connection

IPv4 connection entity

Summary

Methods
Properties
Constants
__construct()
fromForm()
fromNmCli()
getMethod()
getAddresses()
getGateway()
getDns()
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(\App\NetworkModule\Entities\IPv4Methods  method, \App\NetworkModule\Entities\IPv4Address||string|int  addresses, \App\NetworkModule\Entities\IPv4|null  gateway, \App\NetworkModule\Entities\IPv4||string|int  dns) : 

IPv4 connection entity constructor

Parameters

\App\NetworkModule\Entities\IPv4Methods method

Connection method

\App\NetworkModule\Entities\IPv4Address||string|int addresses

IPv4 addresses

\App\NetworkModule\Entities\IPv4|null gateway

IPv4 gateway address

\App\NetworkModule\Entities\IPv4||string|int dns

DNS servers

Returns

fromForm()

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

Sets the values from the network comnnection configuration form

Parameters

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

Values from the network connection configuration form

Returns

fromNmCli()

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

Creates a new IPv4 connection entity from nmcli connection configuration

Parameters

nmCli

nmcli connection configuration

Returns

\App\NetworkModule\Entities\IPv4Connection —

IPv4 connection entity

getMethod()

getMethod() : \App\NetworkModule\Entities\IPv4Methods

Returns the IPv4 connection method

Returns

\App\NetworkModule\Entities\IPv4Methods —

IPv4 connection method

getAddresses()

getAddresses() : \App\NetworkModule\Entities\IPv4Address||string|int

Returns the IPv4 addresses

Returns

\App\NetworkModule\Entities\IPv4Address||string|int —

IPv4 addresses

getGateway()

getGateway() : \App\NetworkModule\Entities\IPv4|null

Returns the IPv4 gateway address

Returns

\App\NetworkModule\Entities\IPv4|null —

IPv4 gateway address

getDns()

getDns() : \App\NetworkModule\Entities\IPv4||string|int

Returns the IPv4 addresses of DNS servers

Returns

\App\NetworkModule\Entities\IPv4||string|int —

IPv4 addresses of DNS servers

toForm()

toForm() : mixed|string|string|int

Converts IPv4 connection entity to an array for the form

Returns

mixed|string|string|int —

Array for the array

toNmCli()

toNmCli() : 

Converts IPv4 connection entity to nmcli configuration string

Returns

nmcli configuration