for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TestMonitor\DevOps\Resources;
class WorkItem extends Resource
{
/**
* The id of the work item.
*
* @var string
*/
public $id;
* The project for the work item.
public $project;
* The team for the work item.
public $team;
* The title of the work item.
public $title;
* The description for the work item.
public $description;
* The type of the work item.
public $workItemType;
* The repro steps for the work item.
public $stepsToReproduce;
* The url for the work item.
public $url;
* Create a new resource instance.
* @param array $attributes
public function __construct(array $attributes)
$this->id = $attributes['id'] ?? null;
$this->project = $attributes['project'] ?? null;
$this->team = $attributes['team'] ?? null;
$this->title = $attributes['title'];
$this->description = $attributes['description'] ?? '';
$this->workItemType = $attributes['workItemType'];
$this->stepsToReproduce = $attributes['stepsToReproduce'] ?? '';
$this->url = $attributes['url'] ?? '';
}
* Generates the area path.
* @return string
public function areaPath(): string
return "{$this->project}\\{$this->team}";