SergioMadness/payment-laravel

View on GitHub
src/contracts/ReceiptItem.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace professionalweb\payment\contracts;

use Illuminate\Contracts\Support\Arrayable;

/**
 * Interface for receipt item
 * @package professionalweb\payment\contracts
 */
interface ReceiptItem extends Arrayable
{
    /**
     * Get quantity
     *
     * @return int
     */
    public function getQty(): int;

    /**
     * Get price
     *
     * @return float
     */
    public function getPrice(): float;

    /**
     * Get currency
     *
     * @return string
     */
    public function getCurrency(): string;

    /**
     * Get tax
     *
     * @return int
     */
    public function getTax(): int;

    /**
     * Get item name
     *
     * @return string
     */
    public function getName(): string;
}