public function getEnvironmentVariable($definition)
    {
        // Iterate over all environmentVariables
        /** @var \AppserverIo\Appserver\Core\Api\Node\EnvironmentVariableNode $environmentVariableNode */
        foreach ($this->getEnvironmentVariables() as $environmentVariableNode) {
            // If we found one with a matching definition we will return it
            if ($environmentVariableNode->getDefinition() === $definition) {
                return $environmentVariableNode;
            }
        }

        // Still here? Seems we did not find anything
        return false;
    }
public function getEnvironmentVariable($definition)
    {
        // Iterate over all environmentVariables
        /** @var \AppserverIo\Appserver\Core\Api\Node\EnvironmentVariableNode $environmentVariableNode */
        foreach ($this->getEnvironmentVariables() as $environmentVariableNode) {
            // If we found one with a matching definition we will return it
            if ($environmentVariableNode->getDefinition() === $definition) {
                return $environmentVariableNode;
            }
        }

        // Still here? Seems we did not find anything
        return false;
    }
public function getEnvironmentVariable ( $ definition ) { // Iterate over all environmentVariables /** @var \AppserverIo\Appserver\Core\Api\Node\EnvironmentVariableNode $environmentVariableNode */ foreach ( $ this -> getEnvironmentVariables ( ) as $ environmentVariableNode ) { // If we found one with a matching definition we will return it if ( $ environmentVariableNode -> getDefinition ( ) === $ definition ) { return $ environmentVariableNode ; } } // Still here? Seems we did not find anything return false ; }
Will return the environmentVariable node with the specified definition and if nothing could
be found we will return false.

@param string $definition The definition of the environmentVariable in question

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