Bristol SU Support Package
Public Member Functions | Private Attributes | List of all members
BristolSU\Support\Connection\RegisteredConnector Class Reference
Inheritance diagram for BristolSU\Support\Connection\RegisteredConnector:
Inheritance graph
[legend]
Collaboration diagram for BristolSU\Support\Connection\RegisteredConnector:
Collaboration graph
[legend]

Public Member Functions

 getName ()
 
 setName (string $name)
 
 getDescription ()
 
 setDescription (string $description)
 
 getService ()
 
 setService (string $service)
 
 getAlias ()
 
 setAlias (string $alias)
 
 getConnector ()
 
 setConnector (string $connector)
 
 toArray ()
 
 toJson ($options=0)
 
 __toString ()
 

Private Attributes

 $name
 
 $description
 
 $service
 
 $alias
 
 $connector
 

Detailed Description

A class to hold a connector and its metadata, and gracefully cast to json or array

Definition at line 12 of file RegisteredConnector.php.

Member Function Documentation

◆ __toString()

BristolSU\Support\Connection\RegisteredConnector::__toString ( )

Cast the registered connector to a string

Returns
string Representation of the registered connector as json (a string)

Definition at line 188 of file RegisteredConnector.php.

References BristolSU\Support\Connection\RegisteredConnector\toJson().

◆ getAlias()

BristolSU\Support\Connection\RegisteredConnector::getAlias ( )

◆ getConnector()

BristolSU\Support\Connection\RegisteredConnector::getConnector ( )

Get the connector class name

Returns
string Class name of the connector

Definition at line 139 of file RegisteredConnector.php.

References BristolSU\Support\Connection\RegisteredConnector\$connector.

Referenced by BristolSU\Support\Connection\RegisteredConnector\toArray().

◆ getDescription()

BristolSU\Support\Connection\RegisteredConnector::getDescription ( )

Get the description of the connector

Returns
string Description of the connector

Definition at line 76 of file RegisteredConnector.php.

References BristolSU\Support\Connection\RegisteredConnector\$description.

Referenced by BristolSU\Support\Connection\RegisteredConnector\toArray().

◆ getName()

BristolSU\Support\Connection\RegisteredConnector::getName ( )

Get the name of the connector

Returns
string Name of the connector

Definition at line 55 of file RegisteredConnector.php.

References BristolSU\Support\Connection\RegisteredConnector\$name.

Referenced by BristolSU\Support\Connection\RegisteredConnector\toArray().

◆ getService()

BristolSU\Support\Connection\RegisteredConnector::getService ( )

Get the service the connector supplies

Returns
string Service the connector supplies

Definition at line 97 of file RegisteredConnector.php.

References BristolSU\Support\Connection\RegisteredConnector\$service.

Referenced by BristolSU\Support\Connection\RegisteredConnector\toArray().

◆ setAlias()

BristolSU\Support\Connection\RegisteredConnector::setAlias ( string  $alias)

Set the alias of the connector

Parameters
string$aliasAlias of the connector
Returns
void

Definition at line 129 of file RegisteredConnector.php.

References BristolSU\Support\Connection\RegisteredConnector\$alias, and function\alias().

◆ setConnector()

BristolSU\Support\Connection\RegisteredConnector::setConnector ( string  $connector)

Set the class name

Parameters
string$connectorClass name of the connector
Returns
void

Definition at line 150 of file RegisteredConnector.php.

References BristolSU\Support\Connection\RegisteredConnector\$connector.

◆ setDescription()

BristolSU\Support\Connection\RegisteredConnector::setDescription ( string  $description)

Set the description of the connector

Parameters
string$descriptionDescription of the connector
Returns
void

Definition at line 87 of file RegisteredConnector.php.

References BristolSU\Support\Connection\RegisteredConnector\$description.

◆ setName()

BristolSU\Support\Connection\RegisteredConnector::setName ( string  $name)

Set the name of the connector

Parameters
string$nameName of the connector
Returns
void

Definition at line 66 of file RegisteredConnector.php.

References BristolSU\Support\Connection\RegisteredConnector\$name.

◆ setService()

BristolSU\Support\Connection\RegisteredConnector::setService ( string  $service)

Set the service the connector supplies

Parameters
string$serviceService the connector supplies
Returns
void

Definition at line 108 of file RegisteredConnector.php.

References BristolSU\Support\Connection\RegisteredConnector\$service.

◆ toArray()

BristolSU\Support\Connection\RegisteredConnector::toArray ( )

◆ toJson()

BristolSU\Support\Connection\RegisteredConnector::toJson (   $options = 0)

Cast the registered connector to json

Parameters
int$optionsOptions for json encoding
Returns
string Representation of the registered connector as json

Definition at line 178 of file RegisteredConnector.php.

References BristolSU\Support\Connection\RegisteredConnector\toArray().

Referenced by BristolSU\Support\Connection\RegisteredConnector\__toString().

Member Data Documentation

◆ $alias

BristolSU\Support\Connection\RegisteredConnector::$alias
private

◆ $connector

BristolSU\Support\Connection\RegisteredConnector::$connector
private

◆ $description

BristolSU\Support\Connection\RegisteredConnector::$description
private

◆ $name

BristolSU\Support\Connection\RegisteredConnector::$name
private

◆ $service

BristolSU\Support\Connection\RegisteredConnector::$service
private

The documentation for this class was generated from the following file: