Tobscure\JsonApi\SerializerInterface::getType PHP Méthode

getType() public méthode

Get the type.
public getType ( mixed $model ) : string
$model mixed
Résultat string
    public function getType($model);

Usage Example

Exemple #1
0
 /**
  * Get the resource type.
  *
  * @return string
  */
 public function getType()
 {
     return $this->serializer->getType($this->data);
 }