PHP Interface Sulu\Bundle\ContactBundle\Contact\AccountFactoryInterface

Show file Open project: sulu/sulu

Public Methods

Method Description
createApiEntity ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account, string $locale ) : Account Creates a new api entity out of an account.
createEntity ( ) : Sulu\Bundle\ContactBundle\Entity\AccountInterface Creates a new empty account.

Method Details

createApiEntity() public method

Creates a new api entity out of an account.
public createApiEntity ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account, string $locale ) : Account
$account Sulu\Bundle\ContactBundle\Entity\AccountInterface
$locale string
return Sulu\Bundle\ContactBundle\Api\Account

createEntity() public method

Creates a new empty account.
public createEntity ( ) : Sulu\Bundle\ContactBundle\Entity\AccountInterface
return Sulu\Bundle\ContactBundle\Entity\AccountInterface