binghua/turnipscalculate

大頭菜計算機

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/binghua/turnipscalculate

v1.1.1 2020-09-30 07:13 UTC

This package is auto-updated.

Last update: 2025-09-29 02:58:02 UTC


README

how to install

composer require binghua/turnipscalculate

how to use

use BingHua\TurnipsCalculate\TurnipsFactory;

public function __construct(TurnipsFactory $turnipsFactory)
    {
        $this->turnipsFactory = $turnipsFactory;
    }

    public function create()
    {
        $type = '好的大頭菜'
        //$type = '壞掉的大頭菜'
        $price = 400;
        $count = 10
        return $this->turnipsFactory::factory($type, $price, $count)->calculatePrice();
    }