<?php
 namespace App\GenDocument\Vars; class PivotBuilderConfig { static public function fromPivot($pivot) { $class = '\App\GenDocument\Vars\Config_'.ucfirst($pivot); return $class::getInstance(); } } 