for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace solutionDrive\SyliusProductBundlesPlugin\Service\Options;
/**
* Created by solutionDrive GmbH
*
* @copyright 2018 solutionDrive GmbH
*/
class ProductBundleSlotOptions implements ProductBundleSlotOptionsInterface
{
/** @var int */
private $position;
/** @var bool */
private $isPresentationSlot = false;
/** @var array */
private $additionalOptions = [];
public function addOption(string $name, $value): void
$this->additionalOptions[$name] = $value;
}
public function getOption(string $name)
return $this->additionalOptions[$name];
public function setPosition(int $position): void
$this->position = $position;
public function getPosition(): int
return $this->position;
public function setAsPresentationSlot(): void
$this->isPresentationSlot = true;
public function isPresentationSlot(): bool
return $this->isPresentationSlot;