PHP Classes

File: tests/Model/ValidNoteModel.php

Recommend this page to a friend!
  Classes of Maik Greubel   Caribu ORM   tests/Model/ValidNoteModel.php   Download  
File: tests/Model/ValidNoteModel.php
Role: Unit test script
Content type: text/plain
Description: Test entity for valid tests
Class: Caribu ORM
Map objects to databases records using annotations
Author: By
Last change: Strong type and documentation fixes
Date: 6 years ago
Size: 1,344 bytes
 

Contents

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

use
Nkey\Caribu\Model\AbstractModel;

/**
 * A very basic entity model
 *
 * This class is part of Caribu package
 *
 * @author Maik Greubel <greubel@nkey.de>
 * @table notes
 */
class ValidNoteModel extends AbstractModel
{
   
/**
     * @id
     * @var int
     */
   
private $noteId;

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

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

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

   
/**
     *
     * @param
     * $noteId
     */
   
public function setNoteId($noteId)
    {
       
$this->noteId = $noteId;
        return
$this;
    }

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

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

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

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


}