• File: Bar.php
  • Full Path: /home/masbinta/public_html/core/vendor/doctrine/deprecations/test_fixtures/vendor/doctrine/foo/Bar.php
  • File size: 442 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

declare(strict_types=1);

namespace Doctrine\Foo;

use Doctrine\Deprecations\Deprecation;

class Bar
{
    public function oldFunc(): void
    {
        Deprecation::triggerIfCalledFromOutside(
            'doctrine/foo',
            'https://github.com/doctrine/foo',
            'Bar::oldFunc() is deprecated, use Bar::newFunc() instead.'
        );
    }

    public function newFunc(): void
    {
        $this->oldFunc();
    }
}