susina/psr2-code-generator

View on GitHub
src/Model/Parts/LongDescriptionPart.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php declare(strict_types=1);

namespace Susina\Codegen\Model\Parts;

/**
 * Long description part.
 *
 * For all models that can have an additional long description
 *
 * @author Thomas Gossmann
 */
trait LongDescriptionPart
{
    /** @var string */
    private $longDescription = '';

    /**
     * Returns the long description.
     */
    public function getLongDescription(): string
    {
        return $this->longDescription;
    }

    /**
     * Sets the long description.
     *
     * @return $this
     */
    public function setLongDescription(string $longDescription): self
    {
        $this->longDescription = $longDescription;

        return $this;
    }
}