for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the ONGR package.
*
* (c) NFQ Technologies UAB <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ONGR\SettingsBundle\Document;
use JsonSerializable;
use ONGR\ElasticsearchBundle\Annotation as ES;
/**
* Stores admin settings.
* @ES\Document(type="profiles")
class Profile implements JsonSerializable
{
* @var string
* @ES\Id()
private $id;
* @ES\Property(name="name", type="string", options={"analyzer"="standard"})
private $name;
* @ES\Property(name="description", type="string", options={"analyzer"="standard"})
private $description;
* @return string
public function getId()
return $this->id;
}
* @param string $id
public function setId($id)
$this->id = $id;
public function getName()
return $this->name;
* @param string $name
public function setName($name)
$this->name = $name;
public function getDescription()
return $this->description;
* @param string $description
public function setDescription($description)
$this->description = $description;
public function jsonSerialize()
return [
'id' => $this->id,
'name' => $this->name,
'description' => $this->description,
];