for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Backend\Modules\Location\Domain\LocationSetting;
use Backend\Modules\Location\Domain\Location\Location;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="location_settings")
* @ORM\Entity(repositoryClass="Backend\Modules\Location\Domain\LocationSetting\LocationSettingRepository")
*/
class LocationSetting
{
* @var Location
*
* @ORM\Id
* @ORM\ManyToOne(targetEntity="Backend\Modules\Location\Domain\Location\Location", inversedBy="settings")
private $location;
* @var string
* @ORM\Column(type="string", length=180)
private $name;
* @var mixed
* @ORM\Column(type="object")
private $value;
public function __construct(Location $location, string $name, $value)
$this->location = $location;
$this->name = $name;
$this->value = $value;
}
public function getName(): string
return $this->name;
public function getValue()
return $this->value;
public function update($value): void