for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Hamidrezaniazi\Upolo\Filters;
class FileFilters extends Filters
{
/**
* Registered filters to operate upon.
*
* @var array
*/
protected $filters = ['owner_type', 'owner_id', 'creator_id', 'type', 'flag'];
* @param string $ownerType
* @return mixed
protected function owner_type(string $ownerType)
return $this->builder->whereOwnerTypeIs($ownerType);
}
* @param int $ownerId
protected function owner_id(int $ownerId)
return $this->builder->whereOwnerIdIs($ownerId);
* @param int $creatorId
protected function creator_id(int $creatorId)
return $this->builder->whereCreatorIdIs($creatorId);
* @param string $type
protected function type(string $type)
return $this->builder->whereTypeIs($type);
* @param string $flag
protected function flag(string $flag)
return $this->builder->whereFlagIs($flag);