PHP Classes

File: tests/Model/ReferencedGuestBook.php

Recommend this page to a friend!
  Classes of Maik Greubel  >  Caribu ORM  >  tests/Model/ReferencedGuestBook.php  >  Download  
File: tests/Model/ReferencedGuestBook.php
Role: Unit test script
Content type: text/plain
Description: Entity for referenced tests
Class: Caribu ORM
Map objects to databases records using annotations
Author: By
Last change: Add complex member mapping between table and entity
Date: 4 years ago
Size: 1,739 bytes
 

Contents

Class file image Download
<?php
namespace Nkey\Caribu\Tests\Model;

use
Nkey\Caribu\Model\AbstractModel;

/**
 * Annotated referenced guestbook entity model
 *
 * This class is part of Caribu package
 *
 * @author Maik Greubel <greubel@nkey.de>
 * @entity
 * @table guestbook
 * @cascade
 */
class ReferencedGuestBook extends AbstractModel
{
   
/**
     * @var int
     * @id
     * @column id
     */
   
private $gid;

   
/**
     *
     * @var string
     */
   
private $content;

   
/**
     *
     * @var \Nkey\Caribu\Tests\Model\User
     */
   
private $user;

   
/**
     *
     * @var \DateTime
     */
   
private $created;

   
/**
     *
     * @return int
     */
   
public function getGid()
    {
        return
$this->gid;
    }

   
/**
     * @param int $id
     */
   
public function setGid($id)
    {
       
$this->gid = $id;
        return
$this;
    }

   
/**
     *
     * @return string
     */
   
public function getContent()
    {
        return
$this->content;
    }

   
/**
     *
     * @param string $content
     */
   
public function setContent($content)
    {
       
$this->content = $content;
        return
$this;
    }

   
/**
     *
     * @return \Nkey\Caribu\Tests\Model\User
     */
   
public function getUser()
    {
        return
$this->user;
    }

   
/**
     *
     * @param \Nkey\Caribu\Tests\Model\User $user
     */
   
public function setUser($user)
    {
       
$this->user = $user;
        return
$this;
    }

   
/**
     *
     * @return string
     */
   
public function getCreated()
    {
        return
$this->created;
    }

   
/**
     *
     * @param string $created
     */
   
public function setCreated($created)
    {
       
$this->created = $created;
        return
$this;
    }
}


For more information send a message to info at phpclasses dot org.