Skip to content
Snippets Groups Projects
race.php 1 KiB
Newer Older
clement's avatar
clement committed
<?php
clement's avatar
clement committed
class Race extends Objet
clement's avatar
clement committed
{
clement's avatar
c  
clement committed
    protected $id;
clement's avatar
c  
clement committed
    protected $nom;
    protected $espece;
clement's avatar
clement committed
    protected $prix_intervention;
Matthieu Guffroy's avatar
Matthieu Guffroy committed
    public $_specialFields = array(
        "espece" => array(
            "t" => "ForeignField"
        ));
clement's avatar
clement committed

clement's avatar
c  
clement committed
    public function id()
    {
        return $this->id;
    }
    
    public function setId($id)
    {
        $this->id = $id;
    }

clement's avatar
clement committed
    public function nom()
    {
        return $this->nom;
    }
    
    public function setNom($nom)
    {
        $this->nom = $nom;
    }

clement's avatar
clement committed
    public function espece()
    {
        return $this->espece;
    }
    
    public function setEspece($espece)
    {
        $this->espece = $espece;
    }

clement's avatar
clement committed
    public function prix_intervention()
clement's avatar
clement committed
    {
clement's avatar
clement committed
        return $this->prix_intervention;
clement's avatar
clement committed
    }
    
clement's avatar
clement committed
    public function setPrix_intervention($prix_intervention)
clement's avatar
clement committed
    {
clement's avatar
clement committed
        $this->prix_intervention = $prix_intervention;
clement's avatar
clement committed
    }
clement's avatar
c  
clement committed

    public function str() {
        return $this->nom;
    }