for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/*
* This file is part of the feed-io package.
*
* (c) Alexandre Debril <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FeedIo\Feed\Item;
use FeedIo\Feed\ArrayableInterface;
class Author implements AuthorInterface, ArrayableInterface
{
/**
* @var string
protected $name;
protected $uri;
protected $email;
* @return string
public function getName() : ? string
return $this->name;
}
* @param string $name
* @return AuthorInterface
public function setName(string $name = null) : AuthorInterface
$this->name = $name;
return $this;
public function getUri() : ? string
return $this->uri;
* @param string $uri
public function setUri(string $uri = null) : AuthorInterface
$this->uri = $uri;
public function getEmail() : ? string
return $this->email;
* @param string $email
public function setEmail(string $email = null) : AuthorInterface
$this->email = $email;
* @return array
public function toArray() : array
return get_object_vars($this);