/**
* Constructor
*
* @param RoleObject $baseRole The base role object
* @param int $accountId The ID of the account
* @param string $accountRoleId optional The ID of the ACL role of account level
* @param string $accountRoleName optional The name of the ACL role of account level
* @param int $color optional The color that is associated with the object
* @param bool $isAutomatic optional Wheter this role is created automatically during initialization
*/
public function __construct(RoleObject $baseRole, $accountId, $accountRoleId = null, $accountRoleName = null, $color = null, $isAutomatic = false)
{
$this->baseRole = $baseRole;
$this->accountId = $accountId;
$this->color = (int) $color;
$this->isAutomatic = (bool) $isAutomatic;
parent::__construct($accountRoleId, $accountRoleName);
}