File: src/Example/City.php

Recommend this page to a friend!
  Classes of Mateus Fornari  >  Hypersistence  >  src/Example/City.php  >  Download  
File: src/Example/City.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Hypersistence
Store and retrieve objects in databases using PDO
Author: By
Last change:
Date: 6 years ago
Size: 371 bytes
 

 

Contents

Class file image Download
<?php

/**
 * @table(city)
 */
class City extends Hypersistence{
   
/**
     * @primaryKey
     */
   
private $id;
   
   
/**
     * @column()
     */
   
private $name;
   
    public function
getId() {
        return
$this->id;
    }

    public function
getName() {
        return
$this->name;
    }

    public function
setId($id) {
       
$this->id = $id;
    }

    public function
setName($name) {
       
$this->name = $name;
    }


}


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