PHP Class Lw\Domain\Model\User\User

Show file Open project: dddinphp/last-wishes Class Usage Examples

Protected Properties

Property Type Description
$createdOn DateTime
$email string
$password string
$updatedOn DateTime
$userId UserId
$wishes Doctrine\Common\Collections\ArrayCollection

Public Methods

Method Description
__construct ( UserId $userId, string $email, string $password )
changePassword ( string $password )
deleteWish ( WishId $wishId )
email ( ) : string
grantWishes ( )
id ( ) : UserId
makeWishAggregateVersion ( $address, $content )
makeWishNoAggregateVersion ( WishId $wishId, $address, $content )
numberOfRemainingWishes ( )
password ( ) : string
updateWish ( WishId $wishId, $address, $content )

Protected Methods

Method Description
setEmail ( $email )

Method Details

__construct() public method

public __construct ( UserId $userId, string $email, string $password )
$userId UserId
$email string
$password string

changePassword() public method

public changePassword ( string $password )
$password string

deleteWish() public method

public deleteWish ( WishId $wishId )
$wishId Lw\Domain\Model\Wish\WishId

email() public method

public email ( ) : string
return string

grantWishes() public method

public grantWishes ( )

id() public method

public id ( ) : UserId
return UserId

makeWishAggregateVersion() public method

public makeWishAggregateVersion ( $address, $content )

makeWishNoAggregateVersion() public method

public makeWishNoAggregateVersion ( WishId $wishId, $address, $content )
$wishId Lw\Domain\Model\Wish\WishId

numberOfRemainingWishes() public method

password() public method

public password ( ) : string
return string

setEmail() protected method

protected setEmail ( $email )
$email

updateWish() public method

public updateWish ( WishId $wishId, $address, $content )
$wishId Lw\Domain\Model\Wish\WishId

Property Details

$createdOn protected property

protected DateTime $createdOn
return DateTime

$email protected property

protected string $email
return string

$password protected property

protected string $password
return string

$updatedOn protected property

protected DateTime $updatedOn
return DateTime

$userId protected property

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

$wishes protected property

protected ArrayCollection,Doctrine\Common\Collections $wishes
return Doctrine\Common\Collections\ArrayCollection