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

ファイルを表示 Open project: bosnadev/repositories Class Usage Examples

Protected Properties

Property Type Description
$files Illuminate\Filesystem\Filesystem
$model
$repository

Public Methods

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

Protected Methods

Method 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 method

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

create() public method

Create the repository.
public create ( $repository, $model ) : integer
$repository
$model
return integer

createClass() protected method

protected createClass ( )

createDirectory() protected method

protected createDirectory ( )

getDirectory() protected method

Get the repository directory.
protected getDirectory ( ) : mixed
return mixed

getModel() public method

public getModel ( ) : mixed
return mixed

getModelName() protected method

Get the model name.
protected getModelName ( ) : string
return string

getPath() protected method

Get the path.
protected getPath ( ) : string
return string

getPopulateData() protected method

Get the populate data.
protected getPopulateData ( ) : array
return array

getRepository() public method

public getRepository ( ) : mixed
return mixed

getRepositoryName() protected method

Get the repository name.
protected getRepositoryName ( ) : mixed | string
return mixed | string

getStub() protected method

Get the stub.
protected getStub ( ) : string
return string

getStubPath() protected method

Get the stub path.
protected getStubPath ( ) : string
return string

populateStub() protected method

Populate the stub.
protected populateStub ( ) : mixed
return mixed

setModel() public method

public setModel ( mixed $model )
$model mixed

setRepository() public method

public setRepository ( mixed $repository )
$repository mixed

stripRepositoryName() protected method

Get the stripped repository name.
protected stripRepositoryName ( ) : string
return string

Property Details

$files protected_oe property

protected Filesystem,Illuminate\Filesystem $files
return Illuminate\Filesystem\Filesystem

$model protected_oe property

protected $model

$repository protected_oe property

protected $repository