public function getFieldDescriptor($key)
    {
        if (array_key_exists($key, $this->fieldDescriptors)) {
            return $this->fieldDescriptors[$key];
        } else if (array_key_exists($key, $this->orderFieldDescriptors)) {
            return $this->orderFieldDescriptors[$key];
        } else {
            throw new ShippingException('field descriptor with key ' . $key . ' could not be found');
        }
    }
public function getFieldDescriptor($key)
    {
        if (array_key_exists($key, $this->fieldDescriptors)) {
            return $this->fieldDescriptors[$key];
        } else if (array_key_exists($key, $this->orderFieldDescriptors)) {
            return $this->orderFieldDescriptors[$key];
        } else {
            throw new ShippingException('field descriptor with key ' . $key . ' could not be found');
        }
    }
public function getFieldDescriptor ( $ key ) { if ( array_key_exists ( $ key , $ this -> fieldDescriptors ) ) { return $ this -> fieldDescriptors [ $ key ] ; } else if ( array_key_exists ( $ key , $ this -> orderFieldDescriptors ) ) { return $ this -> orderFieldDescriptors [ $ key ] ; } else { throw new ShippingException ( 'field descriptor with key ' . $ key . ' could not be found' ) ; } }
returns a specific field descriptor by key
@param $key
@throws Exception\ShippingException
@return DoctrineFieldDescriptor
returns a specific field descriptor by key