getAttributes() public method

Get the attributes array.
public getAttributes ( mixed $model, array $fields = null ) : array
$model mixed
$fields array
return array
Exemplo n.º 1
0
 /**
  * Get the resource attributes.
  *
  * @return array
  */
 public function getAttributes()
 {
     $attributes = (array) $this->serializer->getAttributes($this->data, $this->getOwnFields());
     $attributes = $this->filterFields($attributes);
     $attributes = $this->mergeAttributes($attributes);
     return $attributes;
 }