alexpts/php-data-transformer

View on GitHub
example/models/Tag/Tag.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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;
    }

}