src/TransformerAbstract.php
protected function primitive($data, $transformer = null, $resourceKey = null)
    {
        return new Primitive($data, $transformer, $resourceKey);
    }
protected function primitive($data, $transformer = null, $resourceKey = null)
    {
        return new Primitive($data, $transformer, $resourceKey);
    }
protected function primitive ( $ data , $ transformer = null , $ resourceKey = null ) { return new Primitive ( $ data , $ transformer , $ resourceKey ) ; }
Create a new primitive resource object.

@param mixed                        $data
@param callable|null                $transformer
@param string                       $resourceKey

@return Primitive
Create a new primitive resource object .