public function setDecoratedObject($decorated)
    {
        if (!is_object($decorated)) {
            throw new \InvalidArgumentException(
                sprintf(
                    'Expected an object but got an argument of type "%s" instead.',
                    gettype($decorated)
                )
            );
        }

        $this->decoratedObject = $decorated;
    }