PHP Classes

File: src/Example/Student.php

Recommend this page to a friend!
  Classes of Mateus Fornari   Hypersistence   src/Example/Student.php   Download  
File: src/Example/Student.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: 9 years ago
Size: 611 bytes
 

Contents

Class file image Download
<?php

/**
 * @table(student)
 * @joinColumn(id)
 */
class Student extends Person{
   
/**
     * @column()
     */
   
private $number;
   
   
/**
     * @manyToMany(eager)
     * @joinTable(student_has_course)
     * @joinColumn(student_id)
     * @inverseJoinColumn(course_id)
     * @itemClass(Course)
     */
   
private $courses;
   
    public function
getNumber() {
        return
$this->number;
    }

    public function
setNumber($number) {
       
$this->number = $number;
    }

    public function
getCourses() {
        return
$this->courses;
    }

    public function
setCourses($courses) {
       
$this->courses = $courses;
    }


}