call() public static method

public static call ( $data )
<?php

require __DIR__ . '/../../vendor/autoload.php';
use opensrs\OMA\AddRole;
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    // require_once dirname(__FILE__) . "/../../opensrs/openSRS_loader.php";
    // Put the data to the Formatted array
    $callArray = array('user' => $_POST['user'], 'role' => $_POST['role'], 'object' => $_POST['object']);
    if (!empty($_POST['token'])) {
        $callArray['token'] = $_POST['token'];
    }
    // Open SRS Call -> Result
    $response = AddRole::call($callArray);
    // Print out the results
    echo ' In: ' . json_encode($callArray) . '<br>';
    echo 'Out: ' . $response;
}
?>

<?php 
include 'header.inc';
?>
<div class="container">
<h3>add_role</h3>
<form action="" method="post" class="form-horizontal" >
	<div class="control-group">
	    <label class="control-label">Session Token (Option)</label>
	    <div class="controls"><input type="text" name="token" value="" ></div>
	</div>

	<h4>Required</h4>