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

显示文件 Open project: bosnadev/repositories

Protected Properties

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

Public Methods

Method Description
__construct ( Illuminate\Filesystem\Filesystem $files )
create ( $criteria, $model ) : integer Create the criteria.
createDirectory ( ) Create the criteria directory.
getCriteria ( ) : mixed
getDirectory ( ) : string Get the criteria directory.
getModel ( ) : mixed
setCriteria ( mixed $criteria )
setModel ( mixed $model )

Protected Methods

Method Description
createClass ( ) : integer Create the repository class.
getPath ( ) : string Get the path.
getPopulateData ( ) : array Get the populate data.
getStub ( ) : string Get the stub.
getStubPath ( ) : string Get the stub path.
pluralizeModel ( ) : string Pluralize the model.
populateStub ( ) : mixed Populate the stub.

Method Details

__construct() public method

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

create() public method

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

createClass() protected method

Create the repository class.
protected createClass ( ) : integer
return integer

createDirectory() public method

Create the criteria directory.
public createDirectory ( )

getCriteria() public method

public getCriteria ( ) : mixed
return mixed

getDirectory() public method

Get the criteria directory.
public getDirectory ( ) : string
return string

getModel() public method

public getModel ( ) : mixed
return mixed

getPath() protected method

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

getPopulateData() protected method

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

getStub() protected method

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

getStubPath() protected method

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

pluralizeModel() protected method

Pluralize the model.
protected pluralizeModel ( ) : string
return string

populateStub() protected method

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

setCriteria() public method

public setCriteria ( mixed $criteria )
$criteria mixed

setModel() public method

public setModel ( mixed $model )
$model mixed

Property Details

$criteria protected_oe property

protected $criteria

$files protected_oe property

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

$model protected_oe property

protected $model