This commit is contained in:
Netkas 2023-02-01 19:22:26 -05:00
parent bfe790cf35
commit 39d1084a3f
22 changed files with 1158 additions and 1 deletions

60
src/Tamer/Objects/Job.php Normal file
View file

@ -0,0 +1,60 @@
<?php
/** @noinspection PhpMissingFieldTypeInspection */
namespace Tamer\Objects;
class Job
{
/**
* The ID of the job
*
* @var string
*/
private $id;
/**
* The name of the function
*
* @var string
*/
private $name;
/**
* The data to be passed to the function
*
* @var string
*/
private $data;
public function __construct(string $id, string $name, string $data)
{
$this->id = $id;
$this->name = $name;
$this->data = $data;
}
/**
* @return string
*/
public function getId(): string
{
return $this->id;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @return string
*/
public function getData(): string
{
return $this->data;
}
}