Tobscure\JsonApi\SerializerInterface::getType PHP Method

getType() public method

Get the type.
public getType ( mixed $model ) : string
$model mixed
return string
    public function getType($model);

Usage Example

コード例 #1
0
ファイル: Resource.php プロジェクト: tobscure/json-api
 /**
  * Get the resource type.
  *
  * @return string
  */
 public function getType()
 {
     return $this->serializer->getType($this->data);
 }