Skip to content

Instantly share code, notes, and snippets.

@cherifGsoul
Created July 29, 2013 21:07
Show Gist options
  • Save cherifGsoul/6107841 to your computer and use it in GitHub Desktop.
Save cherifGsoul/6107841 to your computer and use it in GitHub Desktop.
Simple php classe
<?php
/**
*
*/
class Post
{
private $id;
private $title;
private $content;
private $categorie;
private $comments;
/**
* Gets the value of id.
*
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* Sets the value of id.
*
* @param mixed $id the id
*
* @return self
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Gets the value of title.
*
* @return mixed
*/
public function getTitle()
{
return $this->title;
}
/**
* Sets the value of title.
*
* @param mixed $title the title
*
* @return self
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Gets the value of content.
*
* @return mixed
*/
public function getContent()
{
return $this->content;
}
/**
* Sets the value of content.
*
* @param mixed $content the content
*
* @return self
*/
public function setContent($content)
{
$this->content = $content;
return $this;
}
/**
* Gets the value of categorie.
*
* @return mixed
*/
public function getCategorie()
{
return $this->categorie;
}
/**
* Sets the value of categorie.
*
* @param mixed $categorie the categorie
*
* @return self
*/
public function setCategorie($categorie)
{
$this->categorie = $categorie;
return $this;
}
/**
* Gets the value of comments.
*
* @return mixed
*/
public function getComments()
{
return $this->comments;
}
/**
* Sets the value of comments.
*
* @param mixed $comments the comments
*
* @return self
*/
public function setComments($comments)
{
$this->comments = $comments;
return $this;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment