Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Application\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Entity Class representing a Post of our Zend Framework 2 Blogging Application
- *
- * @ORM\Entity
- * @ORM\Table(name="posts")
- * @property int $id
- * @property string $title
- * @property string $text
- */
- class User {
- /**
- * Primary Identifier
- *
- * @ORM\Id
- * @ORM\Column(type="integer")
- * @ORM\GeneratedValue(strategy="AUTO")
- * @var integer
- * @access protected
- */
- protected $id;
- /**
- * Title of our Blog Post
- *
- * @ORM\Column(type="string")
- * @var string
- * @access protected
- */
- protected $fullName;
- /**
- * Sets the Identifier
- *
- * @param int $id
- * @access public
- * @return Post
- */
- public function setId($id) {
- $this->id = $id;
- return $this->id;
- }
- /**
- * Returns the Identifier
- *
- * @access public
- * @return int
- */
- public function getId() {
- return $this->id;
- }
- /**
- * Sets the Title
- *
- * @param string $title
- * @access public
- * @return Post
- */
- public function setFullName($fullName) {
- $this->fullName = $fullName;
- return $this->fullName;
- }
- /**
- * Returns the Title
- *
- * @access public
- * @return string
- */
- public function getFullName() {
- return $this->fullName;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment