PHP Class Lw\Domain\Model\Wish\Wish

Exibir arquivo Open project: dddinphp/last-wishes Class Usage Examples

Protected Properties

Property Type Description
$address string
$content string
$createdOn DateTime
$updatedOn DateTime
$userId Lw\Domain\Model\User\UserId
$wishId WishId

Public Methods

Method Description
__construct ( WishId $wishId, UserId $userId, string $address, string $content )
address ( ) : string
changeAddress ( $address )
changeContent ( $content )
content ( )
grant ( )
id ( ) : WishId
userId ( ) : UserId

Protected Methods

Method Description
setContent ( $content )

Private Methods

Method Description
setAddress ( $address )

Method Details

__construct() public method

public __construct ( WishId $wishId, UserId $userId, string $address, string $content )
$wishId WishId
$userId Lw\Domain\Model\User\UserId
$address string
$content string

address() public method

public address ( ) : string
return string

changeAddress() public method

public changeAddress ( $address )

changeContent() public method

public changeContent ( $content )

content() public method

public content ( )

grant() public method

public grant ( )

id() public method

public id ( ) : WishId
return WishId

setContent() protected method

protected setContent ( $content )
$content

userId() public method

public userId ( ) : UserId
return Lw\Domain\Model\User\UserId

Property Details

$address protected_oe property

protected string $address
return string

$content protected_oe property

protected string $content
return string

$createdOn protected_oe property

protected DateTime $createdOn
return DateTime

$updatedOn protected_oe property

protected DateTime $updatedOn
return DateTime

$userId protected_oe property

protected UserId,Lw\Domain\Model\User $userId
return Lw\Domain\Model\User\UserId

$wishId protected_oe property

protected WishId,Lw\Domain\Model\Wish $wishId
return WishId