2014-07-05 16:19:15 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
namespace Firefly\Storage\Component;
|
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* Interface ComponentRepositoryInterface
|
|
|
|
*
|
|
|
|
* @package Firefly\Storage\Component
|
|
|
|
*/
|
2014-07-05 16:19:15 +02:00
|
|
|
interface ComponentRepositoryInterface
|
|
|
|
{
|
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-05 16:19:15 +02:00
|
|
|
public function count();
|
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-15 06:58:08 +02:00
|
|
|
public function get();
|
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* @param $data
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-05 16:19:15 +02:00
|
|
|
public function store($data);
|
|
|
|
|
2014-09-02 17:27:28 +02:00
|
|
|
/**
|
|
|
|
* @param \User $user
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function overruleUser(\User $user);
|
|
|
|
|
2014-07-05 16:19:15 +02:00
|
|
|
}
|