Skip to content
Snippets Groups Projects
Commit cb3f77e1 authored by Kevin Hill's avatar Kevin Hill
Browse files

adding some missing throws tags

parent 5a07ad08
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -105,6 +105,7 @@ class ScriptManager implements Customizable
*
* @since 4.0.0
* @return string <script> tags
* @throws \Khill\Lavacharts\Exceptions\InvalidElementIdException
*/
public function getScriptTags()
{
Loading
Loading
Loading
Loading
@@ -12,7 +12,6 @@ use Khill\Lavacharts\DataTables\DataFactory;
use Khill\Lavacharts\DataTables\Columns\Format;
use Khill\Lavacharts\DataTables\DataTable;
use Khill\Lavacharts\Exceptions\BadMethodCallException;
use Khill\Lavacharts\Exceptions\InvalidLabelException;
use Khill\Lavacharts\Javascript\ScriptManager;
use Khill\Lavacharts\Support\Contracts\Arrayable;
use Khill\Lavacharts\Support\Contracts\Customizable;
Loading
Loading
@@ -94,6 +93,7 @@ class Lavacharts implements Customizable, Jsonable, Arrayable
* Lavacharts constructor.
*
* @param array $options
* @throws \Khill\Lavacharts\Exceptions\InvalidArgumentException
*/
public function __construct(array $options = [])
{
Loading
Loading
@@ -109,6 +109,7 @@ class Lavacharts implements Customizable, Jsonable, Arrayable
 
$this->volcano = new Volcano();
$this->scriptManager = new ScriptManager();
$this->scriptManager->setOptions($this->options);
$this->scriptManager->setVolcano($this->volcano);
}
Loading
Loading
@@ -121,6 +122,8 @@ class Lavacharts implements Customizable, Jsonable, Arrayable
* @param array $args Passed arguments
* @return Chart|Dashboard|DataTable|Format|Filter
* @throws \Khill\Lavacharts\Exceptions\BadMethodCallException
* @throws \Khill\Lavacharts\Exceptions\InvalidChartType
* @throws \Khill\Lavacharts\Exceptions\InvalidDataTable
*/
public function __call($method, $args)
{
Loading
Loading
@@ -157,6 +160,7 @@ class Lavacharts implements Customizable, Jsonable, Arrayable
* @since 4.0.0
* @param array $options Array of options to override defaults before script output.
* @return string HTML script elements
* @throws \Khill\Lavacharts\Exceptions\InvalidElementIdException
*/
public function flow(array $options = [])
{
Loading
Loading
@@ -211,6 +215,7 @@ class Lavacharts implements Customizable, Jsonable, Arrayable
* @since 3.0.0
* @param string $label
* @return Renderable
* @throws \Khill\Lavacharts\Exceptions\RenderableNotFound
*/
public function get($label)
{
Loading
Loading
@@ -263,7 +268,6 @@ class Lavacharts implements Customizable, Jsonable, Arrayable
* @param DataInterface|null $data
* @param array $options
* @return Dashboard
* @throws InvalidLabelException
*/
public function Dashboard($label, DataInterface $data = null, array $options = [])
{
Loading
Loading
@@ -380,7 +384,7 @@ class Lavacharts implements Customizable, Jsonable, Arrayable
* The render method is depreciated.
*
* @deprecated 4.0.0
* @throws \Khill\Lavacharts\Exceptions\DepreciatedMethodException
* @throws \Khill\Lavacharts\Exceptions\InvalidElementIdException
*/
public function render()
{
Loading
Loading
@@ -404,6 +408,7 @@ class Lavacharts implements Customizable, Jsonable, Arrayable
* @since 4.0.0 Takes options and merges them with existing options.
* @param array $options Options for rendering
* @return string
* @throws \Khill\Lavacharts\Exceptions\InvalidElementIdException
*/
public function renderAll(array $options = [])
{
Loading
Loading
@@ -437,7 +442,8 @@ class Lavacharts implements Customizable, Jsonable, Arrayable
* @param string $type
* @param array $args
* @return Chart
* @throws InvalidLabelException
* @throws \Khill\Lavacharts\Exceptions\InvalidChartType
* @throws \Khill\Lavacharts\Exceptions\InvalidDataTable
*/
private function createChart($type, $args)
{
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment