<?php interface printable { public function printme(); } class Integer implements printable { private $value; public function getValue() { return (int)$this->value; } public function printme() { echo (int)$this->value; } } ?>