Source of file BackendInterface.php
Size: 1,116 Bytes - Last Modified: 2021-12-24T06:51:36+00:00
/var/www/docs.ssmods.com/process/src/src/Storage/BackendInterface.php
12345678910111213141516171819202122232425262728293031323334353637383940414243 | <?php namespace Heystack\Core\Storage; use Heystack\Core\Identifier\IdentifierInterface; /** * The interface the storage backends need to implement * @author Cam Spiers <cameron@heyday.co.nz> * @package Heystack */ interface BackendInterface { /** * @param StorableInterface $object * @return mixed */ public function write(StorableInterface $object); /** * @return \Heystack\Core\Identifier\IdentifierInterface */ public function getIdentifier(); /** * @param \Heystack\Core\Identifier\IdentifierInterface $identifier * @return bool */ public function hasReferenceDataProvider(IdentifierInterface $identifier); /** * @param \Heystack\Core\Identifier\IdentifierInterface $identifier * @return \Heystack\Core\Storage\StorableInterface */ public function getReferenceDataProvider(IdentifierInterface $identifier); /** * @param \Heystack\Core\Storage\StorableInterface $referenceDataProvider * @return void */ public function addReferenceDataProvider(StorableInterface $referenceDataProvider); } |