• File: HasLabel.php
  • Full Path: /home/bravrvjk/itiministry.org/wp-content/plugins/give/src/Framework/FieldsAPI/ValueObjects/HasLabel.php
  • Date Modified: 01/19/2023 12:19 AM
  • File size: 432 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace Give\Framework\FieldsAPI\Concerns;

trait HasLabel
{
    /** @var string */
    protected $label;

    /**
     * @since 2.24.0 add types
     */
    public function label(string $label): self
    {
        $this->label = $label;

        return $this;
    }

    /**
     * @since 2.24.0 add types
     *
     * @return string|null
     */
    public function getLabel()
    {
        return $this->label;
    }
}