example/models/Tag/Tag.php
<?php
class Tag
{
/** @var int */
protected $id;
/** @var string */
protected $title;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param $id
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param $title
* @return $this
*/
public function setTitle($title)
{
$this->title = (string)$title;
return $this;
}
}