CategoryItemRepository
class CategoryItemRepository
Class CategoryItemRepository
Traits
Properties
| static protected array | $models | model class name | from EloquentRepositoryTrait |
| protected Dispatcher | $dispatcher | Event dispatcher instance | |
| static protected callable | $provider | Category model class provider |
Methods
bool|null
int
increment(Model $item, string $column, int $amount = 1)
Increment a column's value by a given amount.
int
decrement(Model $item, string $column, int $amount = 1)
Decrement a column's value by a given amount.
static string
getModel()
The name of Category model class
static void
setModel(string $model)
Set the name of Category model
__construct(Dispatcher $dispatcher)
CategoryItemRepository constructor.
create(array $attributes = array())
Create category item
void
static void
setAggregator(string $aggregator)
Set aggregator to model
static void
setCategoryModelProvider(callable $provider)
Set category model class provider
static string
provideCategoryModel()
Provide category model class
Details
in EloquentRepositoryTrait at line 42
Model
update(Model $item, array $data = array())
update
at line 82
bool|null
delete(CategoryItem $item)
Delete a category item
in EloquentRepositoryTrait at line 69
int
increment(Model $item, string $column, int $amount = 1)
Increment a column's value by a given amount.
in EloquentRepositoryTrait at line 82
int
decrement(Model $item, string $column, int $amount = 1)
Decrement a column's value by a given amount.
at line 118
static string
getModel()
The name of Category model class
at line 131
static void
setModel(string $model)
Set the name of Category model
in EloquentRepositoryTrait at line 113
Model
createModel()
Create model instance
in EloquentRepositoryTrait at line 125
Builder
query()
query
in EloquentRepositoryTrait at line 137
mixed
__call(string $name, array $arguments)
__call
at line 56
__construct(Dispatcher $dispatcher)
CategoryItemRepository constructor.
at line 67
CategoryItem
create(array $attributes = array())
Create category item
at line 100
void
exclude(CategoryItem $item, CategoryItem $excluded)
Exclude object from ancestors of item
at line 145
static protected void
setAggregator(string $aggregator)
Set aggregator to model
at line 157
static void
setCategoryModelProvider(callable $provider)
Set category model class provider
at line 167
static string
provideCategoryModel()
Provide category model class