1 | <?php |
||
24 | trait GetPublicationAuthorTrait |
||
25 | { |
||
26 | /** |
||
27 | * @return null|Storage\User\UserStorage |
||
28 | */ |
||
29 | abstract protected function getUserStorage() : ? Storage\User\UserStorage; |
||
30 | |||
31 | /** |
||
32 | * @return null|Storage\User\UserMetaStorage |
||
33 | */ |
||
34 | abstract protected function getUserMetaStorage() : ? Storage\User\UserMetaStorage; |
||
35 | |||
36 | /** |
||
37 | * @return null|Storage\Filesystem\FilesystemDirectoryStorage |
||
38 | */ |
||
39 | abstract protected function getFilesystemDirectoryStorage() : ? Storage\Filesystem\FilesystemDirectoryStorage; |
||
40 | |||
41 | /** |
||
42 | * Gets author information for a filesystem record. |
||
43 | * |
||
44 | * @param int $userId |
||
45 | * @param int $applicationId |
||
46 | * @return array |
||
47 | */ |
||
48 | protected function getPublicationAuthor(int $userId, int $applicationId) : array |
||
73 | } |
||
74 |