src/Greplab/Jsonrpcsmd/Smd.php
public function toArray()
    {
        $target = $this->getTarget();
        if (empty($target)) throw new \Exception('The target is not defined');

        $map = [];
        foreach ($this->services as $service) {
            $map = array_merge($map, $service->toArray());
        }
        return $this->formatRespond($map);
    }
public function toArray()
    {
        $target = $this->getTarget();
        if (empty($target)) throw new \Exception('The target is not defined');

        $map = [];
        foreach ($this->services as $service) {
            $map = array_merge($map, $service->toArray());
        }
        return $this->formatRespond($map);
    }
public function toArray ( ) { $ target = $ this -> getTarget ( ) ; if ( empty ( $ target ) ) throw new \ Exception ( 'The target is not defined' ) ; $ map = [ ] ; foreach ( $ this -> services as $ service ) { $ map = array_merge ( $ map , $ service -> toArray ( ) ) ; } return $ this -> formatRespond ( $ map ) ; }
Return the service map as an associative array.
@throws \Exception Is the target is not defined yet
@return array
Return the service map as an associative array .