for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Superdesk Web Publisher Settings Bundle.
*
* Copyright 2017 Sourcefabric z.ú. and contributors.
* For the full copyright and license information, please see the
* AUTHORS and LICENSE files distributed with this source code.
* @copyright 2017 Sourcefabric z.ú
* @license http://www.superdesk.org/license
*/
namespace SWP\Bundle\SettingsBundle\Model;
use SWP\Component\Common\Model\TimestampableTrait;
class Settings implements SettingsInterface
{
use TimestampableTrait;
/**
* @var int
protected $id;
* @var string
protected $name;
protected $scope;
protected $value;
protected $owner;
* Settings constructor.
public function __construct()
$this->setCreatedAt(new \DateTime());
}
* {@inheritdoc}
public function getId()
return $this->id;
public function getName(): string
return $this->name;
public function setName(string $name)
$this->name = $name;
public function getScope(): string
return $this->scope;
public function setScope(string $scope)
$this->scope = $scope;
public function getValue(): string
return $this->value;
public function setValue(string $value)
$this->value = $value;
public function getOwner()
return $this->owner;
public function setOwner(int $owner)
$this->owner = $owner;