<?php
namespace Vendor\Package;
class Foo extends Bar implements FooInterface
{
public function sampleFunction($a, $b = null)
{
if ($a === $b) {
// body
} elseif ($a > $b) {
// body
} else {
// body
}
}
final public static function bar()
{
// method body
}
}
<?phpThanks!
namespace Vendor\Package;
class Foo extends Bar implements Foo_Interface
{
public function sample_function($a, $b = null)
{
if ($a === $b)
{
// body
}
elseif ($a > $b)
{
// body
}
else
{
// body
}
}
final public static function bar()
{
// method body
}
}
<?php
namespace Vendor\Package;
class Foo extends Bar implements FooInterface
{
public function sampleFunction($a, $b = null)
{
if ($a === $b)
{
// body
}
elseif ($a > $b)
{
// body
}
else
{
// body
}
}
final public static function bar()
{
// method body
}
}
It looks like you're new here. If you want to get involved, click one of these buttons!