Untitled

mail@pastecode.io avatar
unknown
php
3 years ago
352 B
2
Indexable
Never
<?php

interface FoodWrapper
{
    public function wrap();
}

class burgerWrapperAdapter implements FoodWrapper
{
    private $burgerWrapper;
    
    public function __construct(BurgerWrapper $burgerWrapper)
    {
        $this->burgerWrapper = $burgerWrapper;
    }
    
    public function wrap()
    {
        return $burgerWrapper->wrap();
    }
}