<?php
interface Foo
{
public function bar(string $baz);
}
interface Baz extends Foo
{
public function bar(PDO $baz);
}
href="(https?:\/\/(?!mysite\.ru\/?).+?)"
<?php
trait TraitTest
{
public function myFunction()
{
return 'trait myFunc';
}
public function getDescription()
{
return 'trait getDesc';
}
}
class MyClass
{
use TraitTest {
TraitTest::myFunction as protected traitMyFunc;
}
public function myFunction()
{
echo 'MyClass myFunc';
echo $this->traitMyFunc();
}
}
$MyClass = new MyClass();
echo $MyClass->myFunction();