public function getPClasses($type = null)
    {
        $this->_checkConfig();

        if (!$this->pclasses) {
            $this->pclasses = $this->getPCStorage();
            $this->pclasses->load($this->pcURI);
        }
        $tmp = $this->pclasses->getPClasses(
            $this->_eid, $this->_country, $type
        );
        $this->sortPClasses($tmp[$this->_eid]);
        return $tmp[$this->_eid];
    }
public function getPClasses($type = null)
    {
        $this->_checkConfig();

        if (!$this->pclasses) {
            $this->pclasses = $this->getPCStorage();
            $this->pclasses->load($this->pcURI);
        }
        $tmp = $this->pclasses->getPClasses(
            $this->_eid, $this->_country, $type
        );
        $this->sortPClasses($tmp[$this->_eid]);
        return $tmp[$this->_eid];
    }
public function getPClasses ( $ type = null ) { $ this -> _checkConfig ( ) ; if ( ! $ this -> pclasses ) { $ this -> pclasses = $ this -> getPCStorage ( ) ; $ this -> pclasses -> load ( $ this -> pcURI ) ; } $ tmp = $ this -> pclasses -> getPClasses ( $ this -> _eid , $ this -> _country , $ type ) ; $ this -> sortPClasses ( $ tmp [ $ this -> _eid ] ) ; return $ tmp [ $ this -> _eid ] ; }
Retrieves the specified PClasses.

<b>Type can be</b>:<br>
{@link KlarnaPClass::CAMPAIGN}<br>
{@link KlarnaPClass::ACCOUNT}<br>
{@link KlarnaPClass::SPECIAL}<br>
{@link KlarnaPClass::FIXED}<br>
{@link KlarnaPClass::DELAY}<br>
{@link KlarnaPClass::MOBILE}<br>

@param int $type PClass type identifier.

@throws KlarnaException
@return array An array of PClasses. [KlarnaPClass]
Retrieves the specified PClasses .