# give/4.15.5/src/Framework/Receipts/Properties/ReceiptDetail.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.15.5. 40 lines.

- Page: https://pluginprobe.com/plugins/give/4.15.5/code/src/Framework/Receipts/Properties/ReceiptDetail.php
- Raw: https://pluginprobe.com/plugins/give/4.15.5/raw/src/Framework/Receipts/Properties/ReceiptDetail.php
- Modified: 2023-10-16T17:55:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.15.5/code/src/Framework/Receipts/Properties/ReceiptDetail.php#L10-L20`.

```php
<?php

namespace Give\Framework\Receipts\Properties;

use Give\Framework\Support\Contracts\Arrayable;

class ReceiptDetail implements Arrayable
{
    /**
     * @var string
     */
    public $label;
    /**
     * @var mixed
     */
    public $value;

    /**
     * @since 3.0.0
     *
     * @param  string  $label
     * @param  mixed  $value
     */
    public function __construct(string $label, $value) {
        $this->label = $label;
        $this->value = $value;
    }

    /**
     * @since 3.0.0
     */
    public function toArray(): array
    {
        return [
            'label' => $this->label,
            'value' => $this->value,
        ];
    }
}

```
