public function getAnalytic($uri)
    {

        // iterate over all analytics
        /** @var \AppserverIo\Appserver\Core\Api\Node\AnalyticNode $analyticNode */
        foreach ($this->getAnalytics() as $analyticNode) {
            // if we found one with a matching URI we will return it
            if ($analyticNode->getUri() === $uri) {
                return $analyticNode;
            }
        }

        // we did not find anything
        return false;
    }
public function getAnalytic($uri)
    {

        // iterate over all analytics
        /** @var \AppserverIo\Appserver\Core\Api\Node\AnalyticNode $analyticNode */
        foreach ($this->getAnalytics() as $analyticNode) {
            // if we found one with a matching URI we will return it
            if ($analyticNode->getUri() === $uri) {
                return $analyticNode;
            }
        }

        // we did not find anything
        return false;
    }
public function getAnalytic ( $ uri ) { // iterate over all analytics /** @var \AppserverIo\Appserver\Core\Api\Node\AnalyticNode $analyticNode */ foreach ( $ this -> getAnalytics ( ) as $ analyticNode ) { // if we found one with a matching URI we will return it if ( $ analyticNode -> getUri ( ) === $ uri ) { return $ analyticNode ; } } // we did not find anything return false ; }
Will return the analytic node with the specified definition and if nothing could
be found we will return false

@param string $uri The URI of the analytic in question

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