PHP Class App\Repositories\AbstractConfigRepository

Inheritance: implements App\Repositories\RepositoryInterface
Mostra file Open project: ngmy/webloyer

Protected Properties

Property Type Description
$reader
$writer

Public Methods

Method Description
__construct ( App\Services\Config\ConfigReaderInterface $reader, App\Services\Config\ConfigWriterInterface $writer ) : void Create a new repository instance.
all ( )
byId ( $id )
byPage ( $page = 1, $limi = 10 )
create ( array $data )
delete ( $id )
update ( array $data )

Method Details

__construct() public method

Create a new repository instance.
public __construct ( App\Services\Config\ConfigReaderInterface $reader, App\Services\Config\ConfigWriterInterface $writer ) : void
$reader App\Services\Config\ConfigReaderInterface
$writer App\Services\Config\ConfigWriterInterface
return void

all() public method

public all ( )

byId() public method

public byId ( $id )

byPage() public method

public byPage ( $page = 1, $limi = 10 )

create() public method

public create ( array $data )
$data array

delete() public method

public delete ( $id )

update() public method

public update ( array $data )
$data array

Property Details

$reader protected_oe property

protected $reader

$writer protected_oe property

protected $writer