PHP Class Fenos\Notifynder\Groups\GroupRepository

Inheritance: implements Fenos\Notifynder\Contracts\NotifynderGroupDB
Datei anzeigen Open project: fenos/notifynder Class Usage Examples

Protected Properties

Property Type Description
$groupModel Fenos\Notifynder\Models\NotificationGroup | Illuminate\Database\Eloquent\Builder | Builder

Public Methods

Method Description
__construct ( NotificationGroup $groupModel )
create ( $name ) : Model Create a new group.
delete ( $groupId ) : mixed Delete a group.
find ( $groupId ) : Illuminate\Database\Eloquent\Collection | Model | static Find a group by ID.
findByName ( $name ) : mixed Find a group by name.

Method Details

__construct() public method

public __construct ( NotificationGroup $groupModel )
$groupModel Fenos\Notifynder\Models\NotificationGroup

create() public method

Create a new group.
public create ( $name ) : Model
$name
return Illuminate\Database\Eloquent\Model

delete() public method

Delete a group.
public delete ( $groupId ) : mixed
$groupId
return mixed

find() public method

Find a group by ID.
public find ( $groupId ) : Illuminate\Database\Eloquent\Collection | Model | static
$groupId
return Illuminate\Database\Eloquent\Collection | Illuminate\Database\Eloquent\Model | static

findByName() public method

Find a group by name.
public findByName ( $name ) : mixed
$name
return mixed

Property Details

$groupModel protected_oe property

| Builder
protected NotificationGroup,Fenos\Notifynder\Models|Builder,Illuminate\Database\Eloquent $groupModel
return Fenos\Notifynder\Models\NotificationGroup | Illuminate\Database\Eloquent\Builder