HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/ASmits/kemi.nl/app/KommaApp/Kms/Core/Attributes/Models/Traits/SubFolderTrait.php
<?php
namespace App\KommaApp\Kms\Core\Attributes\Models\Traits;

trait SubFolderTrait
{
    /**
     * @var string $subFolder
     */
    private $subFolder = '';

    /**
     * @return string
     */
    public function getSubFolder()
    {
        return $this->subFolder;
    }

    /**
     * @param string $subFolder
     * @return $this
     */
    public function setSubFolder(string $subFolder)
    {
        $this->subFolder = $subFolder;
        return $this;
    }

    /**
     * When passing an instance of this class to the json_encode function,
     * the data that this method returns will be json_encode'd.
     *
     * return mixed
     */
    public function jsonSerialize()
    {
        return [
            'subFolder' => $this->subFolder
        ];
    }
}