public function getPlan($planCode)
    {
        $plan = $this->planResource->get($planCode);
        if ($plan instanceof \Exception) {
            throw $plan;
        }

        $this->setDeletable(true);

        return $this->_setAttributes($plan);
    }
public function getPlan($planCode)
    {
        $plan = $this->planResource->get($planCode);
        if ($plan instanceof \Exception) {
            throw $plan;
        }

        $this->setDeletable(true);

        return $this->_setAttributes($plan);
    }
public function getPlan ( $ planCode ) { $ plan = $ this -> planResource -> get ( $ planCode ) ; if ( $ plan instanceof \ Exception ) { throw $ plan ; } $ this -> setDeletable ( true ) ; return $ this -> _setAttributes ( $ plan ) ; }
Get plan by plan code.

@param $planCode

@throws
@throws \Exception

@return $this
Get plan by plan code .