PHP Interface Learner\Repositories\LinkRepositoryInterface

Exibir arquivo Open project: RryLee/learner.video Interface Usage Examples

Public Methods

Method Description
delete ( integer $id ) Delete a link.
findAllPaginated ( $perPage = 50 ) : Illuminate\Database\Eloquent\Collection | Link[] Get all link with paginator.
getSaveForm ( ) : SaveLinkFormService Get the link save form
store ( array $data ) : array Store a link.
update ( integer $id, array $data ) : array Update link.

Method Details

delete() public method

Delete a link.
public delete ( integer $id )
$id integer

findAllPaginated() public method

Get all link with paginator.
public findAllPaginated ( $perPage = 50 ) : Illuminate\Database\Eloquent\Collection | Link[]
$perPage = 50
return Illuminate\Database\Eloquent\Collection | Learner\Models\Link[]

getSaveForm() public method

Get the link save form
public getSaveForm ( ) : SaveLinkFormService
return Learner\Services\Forms\SaveLinkFormService

store() public method

Store a link.
public store ( array $data ) : array
$data array
return array

update() public method

Update link.
public update ( integer $id, array $data ) : array
$id integer
$data array
return array