Ковыряй
интерфейсы в PHP
interface EngineInterface
{
public function ArrayMerge($item_1);
public function value_search($item_1, $item_2);
}
class ArrayFunct
{
private $Engine;
function __construct(EngineInterface $Engine)
{
$this -> Engine = $Engine;
}
public function ArrMerge($array)
{
return $this -> Engine -> ArrayMerge($array);
}
public function value_search($array, $search)
{
return $this -> Engine -> key_search($array, $search);
}
}
class Engine implements EngineInterface
{
private $array_result;
private $array_count;
public function ArrMerge($array) {
// ваш функционал
return $result;
}
public function value_search($array, $search) {
// ваш функционал
return $result;
}
}
$engine = new Engine;
$ArrayFunct = new ArrayFunct($engine);