Back to JsonapiDocument class

Method setJsonapi

public $this
setJsonapi
(mixed $jsonapi)
Set the JSON-API array.
Parameters
  • array $jsonapi JSON-API array.
Returns
  • $this
Since
  • 4.0.0

Method setJsonapi - Source code

/**
 * Set the JSON-API array.
 *
 * @param   array  $jsonapi  JSON-API array.
 *
 * @return   $this
 *
 * @since  4.0.0
 */
public function setJsonapi($jsonapi)
{
    $this->document->setJsonapi($jsonapi);
    return $this;
}