for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Loevgaard\SyliusBrandPlugin\Model;
use Sylius\Component\Core\Model\Image;
class BrandImage extends Image implements BrandImageInterface
{
public const TYPE_LOGO = 'logo';
public function isLogo(): bool
return $this->getType() === self::TYPE_LOGO;
}
/**
* {@inheritdoc}
*/
public function getBrand(): ?BrandInterface
/** @var BrandInterface|null $brand */
$brand = $this->getOwner();
return $brand;
public function setBrand(?BrandInterface $brand): void
$this->setOwner($brand);