Skip to content

Instantly share code, notes, and snippets.

@genkovich
Created Apr 15, 2021
Embed
What would you like to do?
<?php
class Image {}
class JpgImage extends Image {}
class Renderer
{
public function render(): Image
{
}
}
class PhotoRenderer extends Renderer
{
public function render(): JpgImage
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment