\App\NetworkModule\EntitiesIPv6Connection

IPv6 connection entity

Summary

Methods
Properties
Constants
__construct()
fromForm()
fromNmCli()
getMethod()
getAddresses()
getDns()
toForm()
toNmCli()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$method
$addresses
$dns
N/A

Properties

$method

$method : \App\NetworkModule\Enums\IPv6Methods

Type

normal — Connection method

$addresses

$addresses : \App\NetworkModule\Entities\IPv6Address[]

Type

normal — IPv6 addresses

$dns

$dns : \Darsyn\IP\Version\IPv6[]

Type

normal — IPv6 addresses of DNS servers

Methods

__construct()

__construct(\App\NetworkModule\Enums\IPv6Methods  $method, \App\NetworkModule\Entities\IPv6Address[]  $addresses, \Darsyn\IP\Version\IPv6[]  $dns) : mixed

IPv6 connection entity constructor

Parameters

\App\NetworkModule\Enums\IPv6Methods $method

IPv6 connection method

\App\NetworkModule\Entities\IPv6Address[] $addresses

IPv6 addresses

\Darsyn\IP\Version\IPv6[] $dns

IPv6 addresses of DNS servers

Returns

mixed

fromForm()

fromForm(\stdClass|\Nette\Utils\ArrayHash  $form) : void

Sets the value from the network connection configuration form

Parameters

\stdClass|\Nette\Utils\ArrayHash $form

Values from the network connection configuration form

fromNmCli()

fromNmCli(string  $nmCli) : \App\NetworkModule\Entities\IPv6Connection

Creates a new IPv6 connection entity from nmcli connection configuration

Parameters

string $nmCli

nmcli connection configuration

Returns

\App\NetworkModule\Entities\IPv6Connection —

IPv6 connection entity

getMethod()

getMethod() : \App\NetworkModule\Enums\IPv6Methods

Returns the IPv6 connection method

Returns

\App\NetworkModule\Enums\IPv6Methods —

IPv6 connection method

getAddresses()

getAddresses() : \App\NetworkModule\Entities\IPv6Address[]

Returns the IPv6 addresses

Returns

\App\NetworkModule\Entities\IPv6Address[] —

IPv6 addresses

getDns()

getDns() : \Darsyn\IP\Version\IPv6[]

Returns the IPv6 addresses of DNS servers

Returns

\Darsyn\IP\Version\IPv6[] —

IPv6 addresses of DNS servers

toForm()

toForm() : array<string,mixed>

Converts IPv6 connection entity to an array for the form

Returns

array

Array for the form

toNmCli()

toNmCli() : string

Converts IPv6 connection entity to nmcli configuration string

Returns

string —

nmcli configuration