src/snac/server/validation/ValidationError.php
/**
     * Construct an array of this message
     *
     * This method is useful to generate JSON objects out of the error message.  The
     * array returned has two keys, `message` that contains the error message and `object`
     * that contains the associative array for that object (by calling its `toArray` method
     * used to generate JSON output.
     *
     * @return string[][] Associative array representing this error.
     */
Construct an array of this message
This method is useful to generate JSON objects out of the error message.

@return string[][] Associative array representing this error.
Construct an array of this message This method is useful to generate JSON objects out of the error message . @return string [] [] Associative array representing this error .
public function toArray() {
        $return = array();
        $return["message"] = $this->message;
        if($this->object != null) {
            $return["object"] = $this->object;
        }
        return $return;
    }
public function toArray ( ) { $ return = array ( ) ; $ return [ " message " ] = $ this -> message ; if ( $ this -> object != null ) { $ return [ " object " ] = $ this -> object ; } return $ return ; }
Construct an array of this message
 This method is useful to generate JSON objects out of the error message.
Construct an array of this message This method is useful to generate JSON objects out of the error message .