for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Cp\DomainObject;
use JMS\Serializer\Annotation as JMS;
/**
* Class Training
*/
class Training
{
* @var string
*
* @JMS\Type("string")
private $content;
private $type;
* @return string
public function getContent()
return $this->content;
}
* @param string $content
public function setContent($content)
$this->content = $content;
public function getType()
return $this->type;
* @param string $type
public function setType($type)
$this->type = $type;
public function __toString()
return $this->getType().':'.$this->getContent()."\n";