![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/rentpix.corals.io/vendor/yajra/laravel-datatables-buttons/src/Html/ |
<?php namespace Yajra\DataTables\Html; use BadMethodCallException; use Yajra\DataTables\Contracts\DataTableHtmlBuilder; /** * @mixin Builder */ abstract class DataTableHtml implements DataTableHtmlBuilder { /** * @var \Yajra\DataTables\Html\Builder|null */ protected ?Builder $htmlBuilder = null; /** * @return \Yajra\DataTables\Html\Builder * * @throws \Exception */ public static function make(): Builder { if (func_get_args()) { return (new static(...func_get_args()))->handle(); } return app(static::class)->handle(); } /** * @param string $method * @param mixed $parameters * @return mixed * * @throws \Exception */ public function __call(string $method, $parameters) { if (method_exists($this->getHtmlBuilder(), $method)) { return $this->getHtmlBuilder()->{$method}(...$parameters); } throw new BadMethodCallException("Method {$method} does not exists"); } /** * @return \Yajra\DataTables\Html\Builder */ protected function getHtmlBuilder(): Builder { if ($this->htmlBuilder) { return $this->htmlBuilder; } return $this->htmlBuilder = app(Builder::class); } /** * @param \Yajra\DataTables\Html\Builder $builder * @return static */ public function setHtmlBuilder(Builder $builder): static { $this->htmlBuilder = $builder; return $this; } }