PHP Class Bosnadev\Repositories\Console\Commands\Creators\RepositoryCreator

Afficher le fichier Open project: bosnadev/repositories Class Usage Examples

Protected Properties

Свойство Type Description
$files Illuminate\Filesystem\Filesystem
$model
$repository

Méthodes publiques

Méthode Description
__construct ( Illuminate\Filesystem\Filesystem $files )
create ( $repository, $model ) : integer Create the repository.
getModel ( ) : mixed
getRepository ( ) : mixed
setModel ( mixed $model )
setRepository ( mixed $repository )

Méthodes protégées

Méthode Description
createClass ( )
createDirectory ( )
getDirectory ( ) : mixed Get the repository directory.
getModelName ( ) : string Get the model name.
getPath ( ) : string Get the path.
getPopulateData ( ) : array Get the populate data.
getRepositoryName ( ) : mixed | string Get the repository name.
getStub ( ) : string Get the stub.
getStubPath ( ) : string Get the stub path.
populateStub ( ) : mixed Populate the stub.
stripRepositoryName ( ) : string Get the stripped repository name.

Method Details

__construct() public méthode

public __construct ( Illuminate\Filesystem\Filesystem $files )
$files Illuminate\Filesystem\Filesystem

create() public méthode

Create the repository.
public create ( $repository, $model ) : integer
$repository
$model
Résultat integer

createClass() protected méthode

protected createClass ( )

createDirectory() protected méthode

protected createDirectory ( )

getDirectory() protected méthode

Get the repository directory.
protected getDirectory ( ) : mixed
Résultat mixed

getModel() public méthode

public getModel ( ) : mixed
Résultat mixed

getModelName() protected méthode

Get the model name.
protected getModelName ( ) : string
Résultat string

getPath() protected méthode

Get the path.
protected getPath ( ) : string
Résultat string

getPopulateData() protected méthode

Get the populate data.
protected getPopulateData ( ) : array
Résultat array

getRepository() public méthode

public getRepository ( ) : mixed
Résultat mixed

getRepositoryName() protected méthode

Get the repository name.
protected getRepositoryName ( ) : mixed | string
Résultat mixed | string

getStub() protected méthode

Get the stub.
protected getStub ( ) : string
Résultat string

getStubPath() protected méthode

Get the stub path.
protected getStubPath ( ) : string
Résultat string

populateStub() protected méthode

Populate the stub.
protected populateStub ( ) : mixed
Résultat mixed

setModel() public méthode

public setModel ( mixed $model )
$model mixed

setRepository() public méthode

public setRepository ( mixed $repository )
$repository mixed

stripRepositoryName() protected méthode

Get the stripped repository name.
protected stripRepositoryName ( ) : string
Résultat string

Property Details

$files protected_oe property

protected Filesystem,Illuminate\Filesystem $files
Résultat Illuminate\Filesystem\Filesystem

$model protected_oe property

protected $model

$repository protected_oe property

protected $repository