Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * Jingga
4 *
5 * PHP Version 8.1
6 *
7 * @package   phpOMS\Algorithm\JobScheduling
8 * @copyright Dennis Eichhorn
9 * @license   OMS License 2.0
10 * @version   1.0.0
11 * @link      https://jingga.app
12 */
13declare(strict_types=1);
14
15namespace phpOMS\Algorithm\JobScheduling;
16
17/**
18 * Job interface.
19 *
20 * @package phpOMS\Algorithm\JobScheduling;
21 * @license OMS License 2.0
22 * @link    https://jingga.app
23 * @since   1.0.0
24 */
25interface JobInterface
26{
27    /**
28     * Get value of the job
29     *
30     * @return float
31     *
32     * @since 1.0.0
33     */
34    public function getValue() : float;
35
36    /**
37     * Get start time of the job
38     *
39     * @return \DateTime
40     *
41     * @since 1.0.0
42     */
43    public function getStart() : \DateTime;
44
45    /**
46     * Get end time of the job
47     *
48     * @return \DateTime
49     *
50     * @since 1.0.0
51     */
52    public function getEnd() : ?\DateTime;
53}