<?php
/*
* This file is part of Sulu.
*
* (c) Sulu GmbH
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Sulu\Bundle\ContactBundle\Entity;
/**
* AccountAddress.
*/
class AccountAddress
{
/**
* @var bool
*/
private $main;
/**
* @var int
*/
private $id;
/**
* @var \Sulu\Bundle\ContactBundle\Entity\Address
*/
private $address;
/**
* @var AccountInterface
*/
private $account;
/**
* Set main.
*
* @param bool $main
*
* @return AccountAddress
*/
public function setMain($main)
{
$this->main = $main;
return $this;
}
/**
* Get main.
*
* @return bool
*/
public function getMain()
{
return $this->main;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set address.
*
* @return AccountAddress
*/
public function setAddress(Address $address)
{
$this->address = $address;
return $this;
}
/**
* Get address.
*
* @return \Sulu\Bundle\ContactBundle\Entity\Address
*/
public function getAddress()
{
return $this->address;
}
/**
* Set account.
*
* @return AccountAddress
*/
public function setAccount(AccountInterface $account)
{
$this->account = $account;
return $this;
}
/**
* Get account.
*
* @return AccountInterface
*/
public function getAccount()
{
return $this->account;
}
}