Skip to content

Instantly share code, notes, and snippets.

@lloc
Last active March 23, 2018 11:32
Show Gist options
  • Save lloc/4ec6e60e04d5519ecc030d3bb01becc1 to your computer and use it in GitHub Desktop.
Save lloc/4ec6e60e04d5519ecc030d3bb01becc1 to your computer and use it in GitHub Desktop.
<?php
namespace wctrn\realloc;
abstract class Option {
abstract function get( int $id );
}
abstract class Transient extends Option {
// expected type of $id is still int
abstract function get( $id ) : Transient;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment