private function getServiceId($serviceKey) {
        return ((interface_exists($serviceKey) || class_exists($serviceKey)) && defined($serviceKey . '::SERVICE_ID'))
            ? $serviceKey::SERVICE_ID
            : (string)$serviceKey
        ;
    }
private function getServiceId($serviceKey) {
        return ((interface_exists($serviceKey) || class_exists($serviceKey)) && defined($serviceKey . '::SERVICE_ID'))
            ? $serviceKey::SERVICE_ID
            : (string)$serviceKey
        ;
    }
private function getServiceId ( $ serviceKey ) { return ( ( interface_exists ( $ serviceKey ) || class_exists ( $ serviceKey ) ) && defined ( $ serviceKey . '::SERVICE_ID' ) ) ? $ serviceKey :: SERVICE_ID : ( string ) $ serviceKey ; }
Extract the service id from the provided parameter
@param string $serviceKey
@return string
Extract the service id from the provided parameter