for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ChrisArmitage\ScalewayApi\Domain;
class Task
{
protected $description;
protected $progress;
protected $status;
protected function __construct($description, $progress, $status) {
$this->description = $description;
$this->progress = $progress;
$this->status = $status;
}
static public function makeFromTaskJson($taskJson) {
static
return new static(
$taskJson->description,
$taskJson->progress,
$taskJson->status
);
/**
* @return mixed
*/
public function getDescription() {
return $this->description;
public function getProgress() {
return $this->progress;
public function getStatus() {
return $this->status;