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\NullableNameTrait
* @author Dan Kempster <[email protected]>
* @license MIT
* @package Axstrad/Common
* @subpackage Traits
trait NullableNameTrait
{
use NameTrait;
* Set name
* @param null|string $name
* @return self
* @see getTitle
public function setName($name = null)
if ($name === null) {
$this->name = null;
}
else {
$this->name = (string) $name;
return $this;