Last active
July 14, 2016 17:28
-
-
Save saltun/10c66fd8d39d370823541d3650a88caa to your computer and use it in GitHub Desktop.
PHPDOC Example Class
This file contains hidden or 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 | |
/** | |
* İnsan sınıfı x) | |
* @author Savaş Can ALTUN <[email protected]> | |
* @link http://savascanaltun.com.tr | |
* @version 1.0 | |
*/ | |
class Human { | |
/** | |
* @var int|null Boş veya sayısal değer | |
*/ | |
private $speed=null; | |
/** | |
* Verilen değere Hello diye yanıt verir | |
* | |
* @param string $name İsim değeri | |
* @return string İşlemin sonucu | |
* @example ornek.php | |
*/ | |
public function hello($name){ | |
return "Hello , ".$name; | |
} | |
/** | |
* İsim değeri alır ama geri değer döndürmez | |
* @param $name İsim değişkeni | |
* @return void | |
*/ | |
public function by($name){ | |
} | |
/** | |
* Koşu hızı belirleme metot'u | |
* @param int $speed | |
* @return int | |
*/ | |
public function run($speed){ | |
return $this->speed=$speed; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment