PHP Class Owl\Repositories\Eloquent\ItemHistoryRepository

Inheritance: implements Owl\Repositories\ItemHistoryRepositoryInterface
Show file Open project: owl/owl

Protected Properties

Property Type Description
$itemHistory

Public Methods

Method Description
__construct ( ItemHistory $itemHistory )
create ( object $item, object $user ) : Illuminate\Database\Eloquent\Model Create a item history.
deleteItemHistory ( $item_id ) : boolean Delete a item history.
getByOpenItemId ( string $open_item_id ) : Illuminate\Database\Eloquent\Model Get a item history by open item id.

Method Details

__construct() public method

public __construct ( ItemHistory $itemHistory )
$itemHistory Owl\Repositories\Eloquent\Models\ItemHistory

create() public method

Create a item history.
public create ( object $item, object $user ) : Illuminate\Database\Eloquent\Model
$item object
$user object
return Illuminate\Database\Eloquent\Model

deleteItemHistory() public method

Delete a item history.
public deleteItemHistory ( $item_id ) : boolean
$item_id int
return boolean

getByOpenItemId() public method

Get a item history by open item id.
public getByOpenItemId ( string $open_item_id ) : Illuminate\Database\Eloquent\Model
$open_item_id string
return Illuminate\Database\Eloquent\Model

Property Details

$itemHistory protected property

protected $itemHistory