File: D:/HostingSpaces/farmfun/reserveren.farmfun.be/app/Komma/Components/ComponentType/Types/Usps.php
<?php
namespace App\Komma\Components\ComponentType\Types;
use App\Komma\Components\ComponentType\ComponentTypes;
use App\Komma\Kms\Core\Attributes\Attribute;
use App\Komma\Kms\Core\Attributes\OnOff;
class Usps extends AbstractComponentType
{
public function __construct()
{
$this->id = ComponentTypes::USPS;
// TODO icon
$this->name = 'usps';
parent::__construct();
$this->attributes->push((new OnOff())
->setLabelText('Schuine bovenkant omkeren')
->mapValueFrom(Attribute::ValueFromComponent, 'reversed')
);
}
}