for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the wow-apps/symfony-packagist project
* https://github.com/wow-apps/symfony-packagist
*
* (c) 2017 WoW-Apps
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WowApps\PackagistBundle\DTO;
* Class PackageVersionAuthor
* @author Alexey Samara <[email protected]>
* @package wow-apps/symfony-packagist
class PackageAuthor
{
/** @var string */
private $name;
private $email;
private $homepage;
private $role;
* PackageVersionAuthor constructor.
* @param string $name
* @param string $email
* @param string $homepage
* @param string $role
public function __construct(string $name = '', string $email = '', string $homepage = '', string $role = '')
$this
->setName($name)
->setEmail($email)
->setHomepage($homepage)
->setRole($role)
;
}
* @return string
public function getName(): string
return $this->name;
* @return PackageAuthor
public function setName(string $name): PackageAuthor
$this->name = $name;
return $this;
public function getEmail(): string
return $this->email;
public function setEmail(string $email): PackageAuthor
$this->email = $email;
public function getHomepage(): string
return $this->homepage;
public function setHomepage(string $homepage): PackageAuthor
$this->homepage = $homepage;
public function getRole(): string
return $this->role;
public function setRole(string $role): PackageAuthor
$this->role = $role;