Skip to content

Instantly share code, notes, and snippets.

@cakper
Created October 17, 2014 13:57
Show Gist options
  • Save cakper/f722e4004d05e10ec866 to your computer and use it in GitHub Desktop.
Save cakper/f722e4004d05e10ec866 to your computer and use it in GitHub Desktop.
<?php
namespace Dcwroc\TaskBundle\InMemory;
use Dcwroc\TaskBundle\Entity\Task;
use Dcwroc\TaskBundle\Entity\TaskRepository;
class InMemoryTaskRepository implements TaskRepository
{
/**
* @return Task[]
*/
public function findAll()
{
return [new Task(), new Task()];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment