Created
July 26, 2011 03:49
-
-
Save Kronos11/1105923 to your computer and use it in GitHub Desktop.
Account Session
This file contains 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 | |
/** | |
* Represents an account session | |
* | |
* Copyright (c) 2011 Kyle Craviotto <kyle@anhstudios.com> | |
*/ | |
namespace Anh\GalaxyManagerBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity | |
* @ORM\Table(name="account_session") | |
*/ | |
class AccountSession | |
{ | |
/** | |
* @ORM\Id | |
* @ORM\Column(type="bigint") | |
* @ORM\generatedValue(strategy="AUTO") | |
*/ | |
protected $id; | |
/** | |
* Get id | |
* | |
* @return integer $id | |
*/ | |
public function getId() | |
{ | |
return $this->id; | |
} | |
/** | |
* @ORM\JoinColumn(name="account_id", referencedColumnName="id") | |
* @ORM\Column(type="int") | |
* | |
*/ | |
protected $account_id | |
/** | |
* Get account_id | |
* | |
* @return integer $account_id | |
*/ | |
public function getAccountId() | |
{ | |
return $this->account_id; | |
} | |
/** | |
* @ORM\Column(type="string", length="100") | |
*/ | |
protected $session_key | |
/** | |
* Get session key | |
* | |
* @return string $session_key | |
*/ | |
public function getSessionKey() | |
{ | |
return $this->session_key; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment