Created
November 12, 2012 09:54
-
-
Save awartoft/4058430 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Antoine Hedgecock <[email protected]> | |
* @author Jonas Eriksson <[email protected]> | |
* | |
* @copyright PMG Media Group AB | |
*/ | |
namespace Domain\Entity; | |
use JsonSerializable; | |
use Doctrine\ORM\Mapping as ORM; | |
use MCN\Object\Entity\AbstractEntity; | |
/** | |
* @category Domain | |
* @package Entity | |
* | |
* @ORM\Table(name="domain_service_configuration") | |
* @ORM\Entity(repositoryClass="MCN\Object\Entity\Repository") | |
* | |
* @ORM\InheritanceType("SINGLE_TABLE") | |
* @ORM\DiscriminatorColumn(name="type", type="string") | |
* @ORM\DiscriminatorMap({ | |
* "registrar" = "Domain\Entity\ServiceConfiguration\Registrar", | |
* "parking" = "Domain\Entity\ServiceConfiguration\Parking" | |
* }) | |
*/ | |
abstract class AbstractServiceConfiguration extends AbstractEntity implements JsonSerializable | |
{ | |
const TYPE_PARKING = 'parking'; | |
const TYPE_REGISTRAR = 'registrar'; | |
/** | |
* @var integer | |
* | |
* @ORM\Id | |
* @ORM\Column(type="integer") | |
* @ORM\GeneratedValue | |
*/ | |
protected $id; | |
/** | |
* @param string | |
* | |
* @ORM\COlumn(type="string") | |
*/ | |
protected $service_manager_alias; | |
/** | |
* @param string | |
* | |
* @ORM\COlumn(type="string") | |
*/ | |
protected $identity; | |
/** | |
* @param string | |
* | |
* @ORM\COlumn(type="string") | |
*/ | |
protected $credential; | |
/** | |
* @param string | |
* | |
* @ORM\ManyToOne(targetEntity="Organisation\Entity\Organisation", inversedBy="services") | |
*/ | |
protected $organisation; | |
/** | |
* @return id | |
*/ | |
public function getId() | |
{ | |
return $this->id; | |
} | |
/** | |
* @return type | |
*/ | |
public function getType() | |
{ | |
return $this->type; | |
} | |
/** | |
* @param $type | |
* @return self | |
*/ | |
public function setType($type) | |
{ | |
$this->type = $type; | |
return $this; | |
} | |
/** | |
* @return service_manager_alias | |
*/ | |
public function getServiceManagerAlias() | |
{ | |
return $this->service_manager_alias; | |
} | |
/** | |
* @param $service_manager_alias | |
* @return self | |
*/ | |
public function setServiceManagerAlias($service_manager_alias) | |
{ | |
$this->service_manager_alias = $service_manager_alias; | |
return $this; | |
} | |
/** | |
* @return identity | |
*/ | |
public function getIdentity() | |
{ | |
return $this->identity; | |
} | |
/** | |
* @param $identity | |
* @return self | |
*/ | |
public function setIdentity($identity) | |
{ | |
$this->identity = $identity; | |
return $this; | |
} | |
/** | |
* @return credential | |
*/ | |
public function getCredential() | |
{ | |
return $this->credential; | |
} | |
/** | |
* @param $credential | |
* @return self | |
*/ | |
public function setCredential($credential) | |
{ | |
$this->credential = $credential; | |
return $this; | |
} | |
/** | |
* @return organisation | |
*/ | |
public function getOrganisation() | |
{ | |
return $this->organisation; | |
} | |
/** | |
* @param $organisation | |
* @return self | |
*/ | |
public function setOrganisation($organisation) | |
{ | |
$this->organisation = $organisation; | |
return $this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment