public function getPClass($id)
    {
        if (!is_numeric($id)) {
            throw new Klarna_InvalidTypeException('id', 'integer');
        }

        $this->_checkConfig();

        if (!$this->pclasses || !($this->pclasses instanceof PCStorage)) {
            $this->pclasses = $this->getPCStorage();
            $this->pclasses->load($this->pcURI);
        }
        return $this->pclasses->getPClass(
            intval($id), $this->_eid, $this->_country
        );
    }
public function getPClass($id)
    {
        if (!is_numeric($id)) {
            throw new Klarna_InvalidTypeException('id', 'integer');
        }

        $this->_checkConfig();

        if (!$this->pclasses || !($this->pclasses instanceof PCStorage)) {
            $this->pclasses = $this->getPCStorage();
            $this->pclasses->load($this->pcURI);
        }
        return $this->pclasses->getPClass(
            intval($id), $this->_eid, $this->_country
        );
    }
public function getPClass ( $ id ) { if ( ! is_numeric ( $ id ) ) { throw new Klarna_InvalidTypeException ( 'id' , 'integer' ) ; } $ this -> _checkConfig ( ) ; if ( ! $ this -> pclasses || ! ( $ this -> pclasses instanceof PCStorage ) ) { $ this -> pclasses = $ this -> getPCStorage ( ) ; $ this -> pclasses -> load ( $ this -> pcURI ) ; } return $ this -> pclasses -> getPClass ( intval ( $ id ) , $ this -> _eid , $ this -> _country ) ; }
Returns the specified PClass.

@param int $id The PClass ID.

@return KlarnaPClass
Returns the specified PClass .