Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (23 sloc) 665 Bytes
<?php
class SerialisationProfiles implements IProfile {
public function __construct() {
$this->string = "foo";
$this->bool = true;
$this->integer= 1234;
$object = new stdClass();
$object->foo = "bar";
$object->baz = "test";
$object->int = 1234;
$this->object = $object;
}
public function getTitle() {
return "Serialisation methods";
}
public function profileJsonEncodeOnSimpleString() {
json_encode("simple string");
}
/**
* @alias VariableProfiles::profileSerializeOnSimpleString
*/
public function profileSerializeStringAlias() { }
}