for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Axstrad library.
*
* (c) Dan Kempster <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* @copyright 2014-2015 Dan Kempster <[email protected]>
*/
namespace Axstrad\Common\Traits;
* Axstrad\Common\Traits\NullableTitleTrait
* @author Dan Kempster <[email protected]>
* @license MIT
* @package Axstrad/Common
* @subpackage Traits
trait NullableTitleTrait
{
use TitleTrait;
* Set title
* @param null|string $title
* @return self
* @see getTitle
public function setTitle($title = null)
if ($title === null) {
$this->title = null;
}
else {
$this->title = (string) $title;
return $this;