Google\Cloud\Datastore\EntityMapper::__construct PHP Method

__construct() public method

Create an Entity Mapper
public __construct ( string $projectId, boolean $encode, boolean $returnInt64AsObject )
$projectId string The datastore project ID
$encode boolean Whether to encode blobs as base64.
$returnInt64AsObject boolean If true, 64 bit integers will be returned as a {@see \Google\Cloud\Int64} object for 32 bit platform compatibility.
    public function __construct($projectId, $encode, $returnInt64AsObject)
    {
        $this->projectId = $projectId;
        $this->encode = $encode;
        $this->returnInt64AsObject = $returnInt64AsObject;
    }