protected function buildDomainObject(Notification $spiNotification): APINotification
    {
        return new APINotification([
            'id' => $spiNotification->id,
            'ownerId' => $spiNotification->ownerId,
            'isPending' => $spiNotification->isPending,
            'type' => $spiNotification->type,
            'created' => new DateTime("@{$spiNotification->created}"),
            'data' => $spiNotification->data,
        ]);
    }
protected function buildDomainObject(Notification $spiNotification): APINotification
    {
        return new APINotification([
            'id' => $spiNotification->id,
            'ownerId' => $spiNotification->ownerId,
            'isPending' => $spiNotification->isPending,
            'type' => $spiNotification->type,
            'created' => new DateTime("@{$spiNotification->created}"),
            'data' => $spiNotification->data,
        ]);
    }
protected function buildDomainObject ( Notification $ spiNotification ) : APINotification { return new APINotification ( [ 'id' => $ spiNotification -> id , 'ownerId' => $ spiNotification -> ownerId , 'isPending' => $ spiNotification -> isPending , 'type' => $ spiNotification -> type , 'created' => new DateTime ( "@{$spiNotification->created}" ) , 'data' => $ spiNotification -> data , ] ) ; }
Builds Notification domain object from ValueObject returned by Persistence API.

@param \eZ\Publish\SPI\Persistence\Notification\Notification $spiNotification

@return \eZ\Publish\API\Repository\Values\Notification\Notification
Builds Notification domain object from ValueObject returned by Persistence API .