Skip to content

Instantly share code, notes, and snippets.

@hannesvdvreken
Created August 21, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hannesvdvreken/9f2878a15ef89ed114c0 to your computer and use it in GitHub Desktop.
Save hannesvdvreken/9f2878a15ef89ed114c0 to your computer and use it in GitHub Desktop.
Immutable container interface
<?php
interface ImmutableContainer
{
/**
* @param string $key
* @param callable $resolver
*
* @return static
*/
public function add($key, callable $resolver);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment