for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Blackmine\Repository\Projects;
use Blackmine\Model\Project\TimeEntry;
use Blackmine\Repository\AbstractRepository;
use Blackmine\Repository\RepositoryInterface;
class TimeEntries extends AbstractRepository
{
public const API_ROOT = "time_entries";
public const TIME_ENTRY_FILTER_PROJECT_ID = "project_id";
public const TIME_ENTRY_FILTER_USER_ID = "user_id";
public const TIME_ENTRY_FILTER_SPENT_ON = "spent_on";
protected static array $allowed_filters = [
self::TIME_ENTRY_FILTER_SPENT_ON => RepositoryInterface::SEARCH_PARAM_TYPE_DATES_ARRAY,
self::TIME_ENTRY_FILTER_USER_ID => RepositoryInterface::SEARCH_PARAM_TYPE_INT,
self::TIME_ENTRY_FILTER_PROJECT_ID => RepositoryInterface::SEARCH_PARAM_TYPE_INT
];
public function getModelClass(): string
return TimeEntry::class;
}