Begin to add Entity to stubs
This commit is contained in:
parent
72ef60f23c
commit
3aae3c012f
@ -35,5 +35,10 @@
|
||||
<directory name="stubs" />
|
||||
</errorLevel>
|
||||
</InvalidReturnType>
|
||||
<PropertyNotSetInConstructor>
|
||||
<errorLevel type="suppress">
|
||||
<directory name="stubs" />
|
||||
</errorLevel>
|
||||
</PropertyNotSetInConstructor>
|
||||
</issueHandlers>
|
||||
</psalm>
|
||||
|
@ -101,13 +101,12 @@ export default {
|
||||
display: flex;
|
||||
gap: 2rem;
|
||||
height: 10rem;
|
||||
overflow: hidden;
|
||||
overflow: auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.header {
|
||||
height: 14rem;
|
||||
overflow: hidden;
|
||||
padding: 2rem;
|
||||
position: relative;
|
||||
}
|
||||
|
11
src/components/Feed/List.vue
Normal file
11
src/components/Feed/List.vue
Normal file
@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<div>
|
||||
{{ 'oui' }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'List',
|
||||
}
|
||||
</script>
|
@ -4,8 +4,18 @@ declare(strict_types=1);
|
||||
|
||||
namespace OCA\GPodderSync\Core\EpisodeAction;
|
||||
|
||||
use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionRepository;
|
||||
use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionWriter;
|
||||
|
||||
class EpisodeActionSaver
|
||||
{
|
||||
public function __construct(
|
||||
private EpisodeActionRepository $episodeActionRepository,
|
||||
private EpisodeActionWriter $episodeActionWriter,
|
||||
private EpisodeActionReader $episodeActionReader
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
|
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\GPodderSync\Db\EpisodeAction;
|
||||
|
||||
use OCA\GPodderSync\Core\EpisodeAction\EpisodeAction;
|
||||
use OCP\AppFramework\Db\Entity;
|
||||
|
||||
/**
|
||||
* @psalm-import-type EpisodeActionType from EpisodeAction
|
||||
*
|
||||
* @method string getPodcast()
|
||||
* @method void setPodcast(string $podcast)
|
||||
* @method string getEpisode()
|
||||
* @method void setEpisode(string $episode)
|
||||
* @method string getAction()
|
||||
* @method void setAction(string $action)
|
||||
* @method int getTimestampEpoch()
|
||||
* @method void setTimestampEpoch(mixed $timestampEpoch)
|
||||
* @method int getStarted()
|
||||
* @method void setStarted(integer $started)
|
||||
* @method int getPosition()
|
||||
* @method void setPosition(integer $position)
|
||||
* @method int getTotal()
|
||||
* @method void setTotal(integer $total)
|
||||
* @method string getGuid()
|
||||
* @method void setGuid(string $guid)
|
||||
* @method string getUserId()
|
||||
* @method void setUserId(string $userId)
|
||||
*/
|
||||
class EpisodeActionEntity extends Entity implements \JsonSerializable
|
||||
{
|
||||
/**
|
||||
* @return EpisodeActionType[]
|
||||
*/
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\GPodderSync\Db\EpisodeAction;
|
||||
|
||||
use OCP\AppFramework\Db\QBMapper;
|
||||
use OCP\DB\Exception;
|
||||
use OCP\IDBConnection;
|
||||
|
||||
/**
|
||||
* @template-extends QBMapper<EpisodeActionEntity>
|
||||
*/
|
||||
class EpisodeActionMapper extends QBMapper
|
||||
{
|
||||
public function __construct(IDBConnection $db)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return EpisodeActionEntity[]
|
||||
* @throws Exception
|
||||
*/
|
||||
public function findAll(int $sinceTimestamp, string $userId)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ?EpisodeActionEntity
|
||||
*/
|
||||
public function findByEpisodeUrl(string $episodeIdentifier, string $userId)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ?EpisodeActionEntity
|
||||
*/
|
||||
public function findByGuid(string $guid, string $userId)
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\GPodderSync\Db\EpisodeAction;
|
||||
|
||||
use OCA\GPodderSync\Core\EpisodeAction\EpisodeAction;
|
||||
|
||||
class EpisodeActionRepository
|
||||
{
|
||||
public function __construct(private EpisodeActionMapper $episodeActionMapper)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return EpisodeAction[]
|
||||
*/
|
||||
public function findAll(int $sinceEpoch, string $userId)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ?EpisodeAction
|
||||
*/
|
||||
public function findByEpisodeUrl(string $episodeUrl, string $userId)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ?EpisodeAction
|
||||
*/
|
||||
public function findByGuid(string $guid, string $userId)
|
||||
{
|
||||
}
|
||||
|
||||
public function deleteEpisodeActionByEpisodeUrl(string $episodeUrl, string $userId): void
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\GPodderSync\Db\EpisodeAction;
|
||||
|
||||
use OCP\DB\Exception;
|
||||
|
||||
class EpisodeActionWriter
|
||||
{
|
||||
public function __construct(private EpisodeActionMapper $episodeActionMapper)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return EpisodeActionEntity
|
||||
* @throws Exception
|
||||
*/
|
||||
public function save(EpisodeActionEntity $episodeActionEntity)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return EpisodeActionEntity
|
||||
* @throws Exception
|
||||
*/
|
||||
public function update(EpisodeActionEntity $episodeActionEntity)
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user