\App\NetworkModule\EntitiesConnection

Network connection entity

Summary

Methods
Properties
Constants
__construct()
fromString()
getName()
getUuid()
getType()
getInterfaceName()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$name
$uuid
$type
$interfaceName
N/A

Properties

$name

$name : string

Type

normal — Network connection name

$uuid

$uuid : \Ramsey\Uuid\UuidInterface

Type

\Ramsey\Uuid\UuidInterface — Network connection UUID

$type

$type : \App\NetworkModule\Enums\ConnectionTypes

Type

normal — Network connection type

$interfaceName

$interfaceName : string

Type

normal — Network interface name

Methods

__construct()

__construct(string  $name, \Ramsey\Uuid\UuidInterface  $uuid, \App\NetworkModule\Enums\ConnectionTypes  $type, string  $interfaceName) : mixed

Network connection entity constructor

Parameters

string $name

Network connection name

\Ramsey\Uuid\UuidInterface $uuid

Network connection UUID

\App\NetworkModule\Enums\ConnectionTypes $type

Network connection type

string $interfaceName

Network interface name

Returns

mixed

fromString()

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

Creates a new network connection entity from the nmcli row

Parameters

string $string

nmcli row

Returns

\App\NetworkModule\Entities\Connection —

Network connection entity

getName()

getName() : string

Returns the network connection name

Returns

string —

Network connection name

getUuid()

getUuid() : \Ramsey\Uuid\UuidInterface

Returns the network connection UUID

Returns

\Ramsey\Uuid\UuidInterface —

Network connection UUID

getType()

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

Returns the network connection type

Returns

\App\NetworkModule\Enums\ConnectionTypes —

Network connection type

getInterfaceName()

getInterfaceName() : string

Returns the network interface name

Returns

string —

Network interface name