public function getConnector($name)
    {
        // Iterate over all connectors
        /** @var \AppserverIo\Appserver\Core\Api\Node\ConnectorNode $connectorNode */
        foreach ($this->getConnectors() as $connectorNode) {
            // If we found one with a matching URI we will return it
            if ($connectorNode->getName() === $name) {
                return $connectorNode;
            }
        }

        // Still here? Seems we did not find anything
        return false;
    }
public function getConnector($name)
    {
        // Iterate over all connectors
        /** @var \AppserverIo\Appserver\Core\Api\Node\ConnectorNode $connectorNode */
        foreach ($this->getConnectors() as $connectorNode) {
            // If we found one with a matching URI we will return it
            if ($connectorNode->getName() === $name) {
                return $connectorNode;
            }
        }

        // Still here? Seems we did not find anything
        return false;
    }
public function getConnector ( $ name ) { // Iterate over all connectors /** @var \AppserverIo\Appserver\Core\Api\Node\ConnectorNode $connectorNode */ foreach ( $ this -> getConnectors ( ) as $ connectorNode ) { // If we found one with a matching URI we will return it if ( $ connectorNode -> getName ( ) === $ name ) { return $ connectorNode ; } } // Still here? Seems we did not find anything return false ; }
Will return the connector node with the specified definition and if nothing could
be found we will return false

@param string $name The name of the connector in question

@return \AppserverIo\Appserver\Core\Api\Node\ConnectorNode|boolean The requested connectors node
Will return the connector node with the specified definition and if nothing could be found we will return false