PHP Class Fenos\Notifynder\Groups\GroupRepository

Inheritance: implements Fenos\Notifynder\Contracts\NotifynderGroupDB
Afficher le fichier Open project: fenos/notifynder Class Usage Examples

Protected Properties

Свойство Type Description
$groupModel Fenos\Notifynder\Models\NotificationGroup | Illuminate\Database\Eloquent\Builder | Builder

Méthodes publiques

Méthode 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 méthode

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

create() public méthode

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

delete() public méthode

Delete a group.
public delete ( $groupId ) : mixed
$groupId
Résultat mixed

find() public méthode

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

findByName() public méthode

Find a group by name.
public findByName ( $name ) : mixed
$name
Résultat mixed

Property Details

$groupModel protected_oe property

| Builder
protected NotificationGroup,Fenos\Notifynder\Models|Builder,Illuminate\Database\Eloquent $groupModel
Résultat Fenos\Notifynder\Models\NotificationGroup | Illuminate\Database\Eloquent\Builder