for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Samurai\Alias;
use Balloon\Mapper\IArrayCastable;
/**
* Class Alias
* @package Samurai\alias
* @author Raphaël Lefebvre <[email protected]>
*/
class Alias implements IArrayCastable
{
* @var string
private $name;
private $description;
private $package;
private $version;
private $source;
* Getter of $name
*
* @return string
public function getName()
return $this->name;
}
* Setter of $name
* @param string $name
public function setName($name)
$this->name = (string)$name;
* Getter of $description
public function getDescription()
return $this->description;
* Setter of $description
* @param string $description
public function setDescription($description)
$this->description = (string)$description;
* Getter of $package
public function getPackage()
return $this->package;
* Setter of $package
* @param string $package
public function setPackage($package)
$this->package = (string)$package;
* Getter of $version
public function getVersion()
return $this->version;
* Setter of $version
* @param string $version
public function setVersion($version)
$this->version = (string)$version;
* Getter of $source
public function getSource()
return $this->source;
* Setter of $source
* @param string $source
public function setSource($source)
$this->source = (string)$source;
* @return array
public function toArray()
return get_object_vars($this);
public function __toString(){
return $this->getDescription()
. ' ('
. trim($this->getPackage() . ' ' . $this->getVersion())
. ')';