Skip to content

Instantly share code, notes, and snippets.

@satooshi
Last active December 13, 2015 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satooshi/4971036 to your computer and use it in GitHub Desktop.
Save satooshi/4971036 to your computer and use it in GitHub Desktop.
PHP code for blog sample.
<?php
namespace Satooshi;
/**
* Short description.
*
* Long description.
*/
class Test
{
const CLASS_CONSTANT = 'class constant';
public $prop;
public static $staticProp;
/**
* Constructor.
*/
public function __construct()
{
$this->prop = 'property';
}
/**
* Set prop.
*
* @param string $prop
* @return void
*/
public function setProp($prop)
{
$this->prop = $prop;
}
/**
* Return prop.
*
* @return string
*/
public function getProp()
{
return $this->prop;
}
public function hello()
{
// say hello
$message = 'hello';
echo $message;
// say bye
$message = "bye";
echo $bye;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment