protected function getBillingPlanFilterByName($value)
    {
        $billingPlans = $this->getBillingPlans();

        foreach ($billingPlans as $billingPlan) {
            if ($billingPlan->name === $value) {
                return $billingPlan;
            }
        }

        return null;
    }
protected function getBillingPlanFilterByName($value)
    {
        $billingPlans = $this->getBillingPlans();

        foreach ($billingPlans as $billingPlan) {
            if ($billingPlan->name === $value) {
                return $billingPlan;
            }
        }

        return null;
    }
protected function getBillingPlanFilterByName ( $ value ) { $ billingPlans = $ this -> getBillingPlans ( ) ; foreach ( $ billingPlans as $ billingPlan ) { if ( $ billingPlan -> name === $ value ) { return $ billingPlan ; } } return null ; }
Get a plan filter by name.

@param string $value

@return null if plan not found else \stdClass
Get a plan filter by name .