PHP Classes

File: tests/Model/GuestBookModel.php

Recommend this page to a friend!
  Classes of Maik Greubel  >  Caribu ORM  >  tests/Model/GuestBookModel.php  >  Download  
File: tests/Model/GuestBookModel.php
Role: Unit test script
Content type: text/plain
Description: Test model
Class: Caribu ORM
Map objects to databases records using annotations
Author: By
Last change:
Date: 5 years ago
Size: 1,421 bytes
 

Contents

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

use
Nkey\Caribu\Model\AbstractModel;

/**
 * A basic guestbook entity model
 *
 * This class is part of Caribu package
 *
 * @author Maik Greubel <greubel@nkey.de>
 */
class GuestBookModel extends AbstractModel
{
    private
$id;

    private
$content;

    private
$user;

    private
$created;

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

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

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

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

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

   
/**
     *
     * @param string $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.