class MyClass {
private $data;
private function __construct($data) {
$this->data = $data;
}
public static function run($data) {
return (new static($data))->callfun();
}
private function callfun() {
return $this->lookup($this->data);
}
private function lookup($data) {
return $data;
}
}