<?php /** * Created by PhpStorm. * User: xpcomrade * Date: 2015/7/28 * Time: 20:32 */ interface Printable { function printOutput(); } class ImageComponent implements Printable { function printOutput() { // TODO: Implement printOutput() method. echo "Printing an image...."; } } $imageComponent = new ImageComponent(); $imageComponent->printOutput();