Skip to content

Instantly share code, notes, and snippets.

@chrisguitarguy
Last active October 26, 2015 13:22
Show Gist options
  • Select an option

  • Save chrisguitarguy/2fbbdb33d10500cb94b1 to your computer and use it in GitHub Desktop.

Select an option

Save chrisguitarguy/2fbbdb33d10500cb94b1 to your computer and use it in GitHub Desktop.
<?php
interface SomeObjectRepository
{
public function getByIdentifier($id);
public function findAll();
public function add(SomeObject $object);
public function remove($objectOrId);
public function update(SomeObject $object);
}
<?php
interface SomeObjectRepository
{
public function getByIdentifier($id);
public function findAll();
}
<?php
interface SomeObjectStorage extends SomeObjectRepository
{
public function add(SomeObject $object);
public function remove($objectOrId);
public function update(SomeObject $object);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment