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\Exception\MethodNotImplementedException;
use Blackmine\Model\AbstractModel;
use Blackmine\Model\Project\Version;
use Blackmine\Repository\AbstractRepository;
use Doctrine\Common\Collections\ArrayCollection;
class Versions extends AbstractRepository
{
public const API_ROOT = "versions";
public function getModelClass(): string
return Version::class;
}
/**
* @throws MethodNotImplementedException
*/
public function create(AbstractModel $model): ?AbstractModel
throw new MethodNotImplementedException(
"Method " . __FUNCTION__ . " not implemented for apì: " . self::API_ROOT
);
public function all(?string $endpoint = null): ArrayCollection
public function search(array $params = []): ArrayCollection