public function getLayer($name)
    {
        if (null === $this->data) {
            $this->initializeProfile();
        }

        if (!is_array($this->data['layers'])) {
            return array();
        }

        $arguments = array();
        foreach ($this->data['layers'] as $key => $layer) {
            if ($name !== $layer) {
                continue;
            }

            foreach ($this->data['arguments'][$key] as $value => $cost) {
                $arguments[$value] = new Cost($cost);
            }
        }

        return $arguments;
    }
public function getLayer($name)
    {
        if (null === $this->data) {
            $this->initializeProfile();
        }

        if (!is_array($this->data['layers'])) {
            return array();
        }

        $arguments = array();
        foreach ($this->data['layers'] as $key => $layer) {
            if ($name !== $layer) {
                continue;
            }

            foreach ($this->data['arguments'][$key] as $value => $cost) {
                $arguments[$value] = new Cost($cost);
            }
        }

        return $arguments;
    }
public function getLayer ( $ name ) { if ( null === $ this -> data ) { $ this -> initializeProfile ( ) ; } if ( ! is_array ( $ this -> data [ 'layers' ] ) ) { return array ( ) ; } $ arguments = array ( ) ; foreach ( $ this -> data [ 'layers' ] as $ key => $ layer ) { if ( $ name !== $ layer ) { continue ; } foreach ( $ this -> data [ 'arguments' ] [ $ key ] as $ value => $ cost ) { $ arguments [ $ value ] = new Cost ( $ cost ) ; } } return $ arguments ; }
Returns the arguments for the given layer.

@param string $name

@return array An array where keys are the argument values and values are Cost instances
Returns the arguments for the given layer .