for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Satis\Model;
use App\Satis\ConfigManager;
use JMS\Serializer\Annotation\Type;
/**
* Package class
*
* @author Lukas Homza <[email protected]>
*/
class Package {
* @Type("string")
private $name;
private $version;
* Initialize with default opinionated values
public function __construct() {
$this->name = '';
$this->version = '*';
}
* @return string
public function getVersion() {
return $this->version;
public function getName() {
return $this->name;
* @param string $version
public function setVersion($version) {
$this->version = $version;
* @param mixed $name
* @return Package
public function setName($name) {
$this->name = trim($name);
return $this;
* Get repository ID
public function getId() {
return ConfigManager::nameToId($this->name);