Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns an array comprising a function's argument list
<?php func_get_args(): array
<?php {
$this->hydrate();
return call_user_func_array([$this, 'traitData'], func_get_args());
}
public function hydrate()
<?php ->getter(function ($path) {
return $path ? ltrim($path, '/') : null;
})
->args(func_get_args());
}
<?php ->setter(function ($container) {
return is_string($container) ? AssetContainerAPI::find($container) : $container;
})
->args(func_get_args());
}
<?php public function id($id = null)
{
return $this->handle(...func_get_args());
}
public function handle($handle = null)
<?php public function handle($handle = null)
{
return $this->fluentlyGetOrSet('handle')->args(func_get_args());
}
public function title($title = null)
<?php ->getter(function ($title) {
return $title ?? ucfirst($this->handle);
})
->args(func_get_args());
}
public function diskPath()
<?php ->getter(function ($disk) {
return $disk ? File::disk($disk) : null;
})
->args(func_get_args());
}
public function diskHandle()
<?php ->getter(function ($allowDownloading) {
return (bool) ($allowDownloading ?? true);
})
->args(func_get_args());
}
<?php ->getter(function ($allowMoving) {
return (bool) ($allowMoving ?? true);
})
->args(func_get_args());
}
<?php ->getter(function ($allowRenaming) {
return (bool) ($allowRenaming ?? true);
})
->args(func_get_args());
}
<?php ->getter(function ($allowUploads) {
return (bool) ($allowUploads ?? true);
})
->args(func_get_args());
}
<?php ->getter(function ($createFolders) {
return (bool) ($createFolders ?? true);
})
->args(func_get_args());
}
public function fileData()
<?php ->getter(function ($index) {
return $index ? Search::index($index) : null;
})
->args(func_get_args());
}
public static function __callStatic($method, $parameters)
<?php public function container($container = null)
{
return $this->fluentlyGetOrSet('container')->args(func_get_args());
}
public function path($path = null)
<?php public function path($path = null)
{
return $this->fluentlyGetOrSet('path')->args(func_get_args());
}
public function basename()