Skip to content

Instantly share code, notes, and snippets.

@yeungon
Created April 7, 2018 16:03
Show Gist options
  • Save yeungon/c8dbf599b7e3ad554ab5afe28d2814fd to your computer and use it in GitHub Desktop.
Save yeungon/c8dbf599b7e3ad554ab5afe28d2814fd to your computer and use it in GitHub Desktop.
are you are philosopher?
<?php
//are you a philosopher? by vuongnguyen
class trietgia{
public $world_level_school_of_thought_what_is_the_world = 'ontology';
public $world_level_school_of_thought_how_we_know_the_world_as_it_is = 'epistemology';
function __construct($name){
$this->name = $name;
}
function criteria($citation, $publication, $schoolofthought){
$this->citation = $citation;
$this->publication = $publication;
$this->schoolofthought = $schoolofthought;
}
function assess(){
if(!is_string($this->schoolofthought)){
echo "Xem ra chưa ăn thua. ";
}elseif ($this->schoolofthought == $this->world_level_school_of_thought_what_is_the_world || $this->schoolofthought == $this->world_level_school_of_thought_how_we_know_the_world_as_it_is) {
echo "Nhà nghiên cứu $this->name có hướng nghiên cứu hen. ";
}
if($this->citation > 0 && $this->publication > 0){
return "Nhà nghiên cứu $this->name có thể bước đầu coi là có năng lực và có sản lượng nghiên cứu.";
}else if($this->citation >0 || $this->publication >0){
return "Nhà nghiên cứu $this->name có dấu hiệu của một nhà viết lách nhưng chưa rõ năng suất, càng chưa rõ chất lượng.";
}else{
return "Nhà nghiên cứu $this->name nên tiếp tục cố gắng, ngừng chém gió Facebook.";
}
}
}
$chemgio1 = new trietgia('X');
$chemgio1->criteria(0, 0, 0);
echo $chemgio1->assess();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment