<?php
require_once 'TextInterface.php';

abstract class 
TextDecoratorAbstract implements TextInterface
{
    private 
$_text;

    public function 
__construct(TextInterface $target)
    {
        
$this->_text $target;
    }

    public function 
getText()
    {
        return 
$this->_text->getText();
    }

    public function 
setText($str)
    {
        
$this->_text->setText($str);
    }
}