Last active
December 20, 2015 09:29
-
-
Save cherifGsoul/6107666 to your computer and use it in GitHub Desktop.
Yii PHP framework Component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
*/ | |
class Post extends CComponent | |
{ | |
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