public function accept()
    {
        /* @var $serviceId string|object */
        $serviceId = $this->current();
        if (in_array($serviceId, $this->getIdsOfServicesThatAreDefinedInApplication())) {
            return true;
        }
        if ($this->startsWithPrefix($serviceId, $this->getPrefixesOfApplicationServices())) {
            return true;
        }
        return false;
    }
public function accept()
    {
        /* @var $serviceId string|object */
        $serviceId = $this->current();
        if (in_array($serviceId, $this->getIdsOfServicesThatAreDefinedInApplication())) {
            return true;
        }
        if ($this->startsWithPrefix($serviceId, $this->getPrefixesOfApplicationServices())) {
            return true;
        }
        return false;
    }
public function accept ( ) { /* @var $serviceId string|object */ $ serviceId = $ this -> current ( ) ; if ( in_array ( $ serviceId , $ this -> getIdsOfServicesThatAreDefinedInApplication ( ) ) ) { return true ; } if ( $ this -> startsWithPrefix ( $ serviceId , $ this -> getPrefixesOfApplicationServices ( ) ) ) { return true ; } return false ; }
Checks if the current service ID is defined directly in the application.

@return boolean True if the current element is acceptable, otherwise false.
@link http://php.net/manual/en/filteriterator.accept.php
Checks if the current service ID is defined directly in the application .