Class Withdrawal

Class Withdrawal

Withdrawal implements WithdrawalInterface

Methods summary

public __construct( WithdrawalRepositoryInterface $repository )

Withdrawal constructor.

public store( void ) :

Saves withdrawal in database.

public delete( void ) :

Deletes withdrawal from database.

public getWithdrawalId( void ) : integer

Returns the withdrawal id.

public setWithdrawalId( IdType $withdrawalId ) :

Sets the withdrawal id.

public getWithdrawalDate( void ) : DateTime

Returns the withdrawal datetime.

public setWithdrawalDate( DateTime $withdrawalDate ) :

sets the datetime.

public getWithdrawalContent( void ) : string

Returns the content.

public setWithdrawalContent( StringType $withdrawalContent ) :

Sets the withdrawal content.

public getDateCreated( void ) : DateTime

Returns the withdrawal created datetime.

public setDateCreated( DateTime $dateCreated ) :

Sets the withdrawal created datetime.

public getCreatedByAdmin( void ) : boolean

Checks if withdrawal by admin created or not.

public setCreatedByAdmin( BoolType $createdByAdmin ) :

Sets whether the withdrawal by admin created or not.

public getWithdrawalOrder( void ) : WithdrawalOrderInterface

Returns the withdrawal Order.

public setWithdrawalOrder( WithdrawalOrderInterface $withdrawalOrder ) :

Sets the withdrawal order.

Properties summary

protected $withdrawalId : integer
0
protected $withdrawalDate : DateTime

		
protected $withdrawalContent : string
''
protected $withdrawalDateCreated : DateTime

		
protected $createdByAdmin : boolean
false