Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (21 sloc) 442 Bytes
<?php
namespace Pv;
class PObject extends Variable
{
public function __construct($value,$type=null)
{
if (!is_object($value)) {
throw new ValidationException('Variable type mismatch, expected object');
}
parent::__construct($value,$type);
}
/**
* Return a string object
* @return \Pv\PString
*/
public function toString()
{
return $this->value;
}
}
?>