app/Plan.php
/**
     * Get the array form of the plan for serialization.
     *
     * @return array
     */
Get the array form of the plan for serialization.
@return array
Get the array form of the plan for serialization . @return array
public function jsonSerialize()
    {
        return [
            'id'         => $this->id,
            'name'       => $this->name,
            'price'      => $this->price,
            'trialDays'  => $this->trialDays,
            'interval'   => $this->interval,
            'features'   => $this->features,
            'active'     => $this->active,
            'attributes' => $this->attributes,
            'type'       => $this->type,
        ];
    }
public function jsonSerialize ( ) { return [ 'id' => $ this -> id , 'name' => $ this -> name , 'price' => $ this -> price , 'trialDays' => $ this -> trialDays , 'interval' => $ this -> interval , 'features' => $ this -> features , 'active' => $ this -> active , 'attributes' => $ this -> attributes , 'type' => $ this -> type , ] ; }
Get the array form of the plan for serialization.
Get the array form of the plan for serialization .