cleanup and tests added for ci/cd

This commit is contained in:
Dennis Eichhorn 2019-11-20 22:28:04 +01:00
parent 095bfe3323
commit 4063ce240d
3 changed files with 73 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace Modules\Tasks\Theme\Backend\Components\Tasks;
/**
* Component view.
*
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @codeCoverageIgnore
*/
class PriorityView extends ListView
{
}

View File

@ -0,0 +1,28 @@
<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace Modules\Tasks\Theme\Backend\Components\Tasks;
/**
* Component view.
*
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @codeCoverageIgnore
*/
class StatusView extends ListView
{
}

View File

@ -17,10 +17,27 @@ namespace Modules\Tasks\Views;
use Modules\Tasks\Models\TaskStatus;
use phpOMS\Views\View;
/**
* Task view class.
*
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class TaskView extends View
{
protected $media = [];
/**
* Get task status color.
*
* @param int $status Status
*
* @return string
*
* @since 1.0.0
*/
public function getStatus(int $status) : string
{
if ($status === TaskStatus::OPEN) {