1414 * @deprecated use OCP\Cache\CappedMemoryCache instead
1515 */
1616 class CappedMemoryCache implements ICache, \ArrayAccess {
17- public function __construct ($ capacity = 512 ) {
18- }
19-
2017 public function hasKey ($ key ): bool {
2118 }
2219
@@ -30,7 +27,6 @@ public function get($key) {
3027 * @param string $key
3128 * @param T $value
3229 * @param int $ttl
33- * @return bool
3430 */
3531 public function set ($ key , $ value , $ ttl = 0 ): bool {
3632 }
@@ -54,7 +50,6 @@ public function &offsetGet($offset) {
5450 /**
5551 * @param string $offset
5652 * @param T $value
57- * @return void
5853 */
5954 public function offsetSet ($ offset , $ value ): void {
6055 }
@@ -97,7 +92,6 @@ public function clear($loadDefaultLinks = true) {
9792 * Get a list of navigation entries
9893 *
9994 * @param string $type type of the navigation entries
100- * @return array
10195 * @since 14.0.0
10296 */
10397 public function getAll (string $ type = self ::TYPE_APPS ): array {
@@ -223,14 +217,17 @@ class Base {
223217 public const OUTPUT_FORMAT_PLAIN = 'plain ' ;
224218 public const OUTPUT_FORMAT_JSON = 'json ' ;
225219 public const OUTPUT_FORMAT_JSON_PRETTY = 'json_pretty ' ;
226-
220+ public const SUCCESS = 0 ;
221+ public const FAILURE = 1 ;
227222 public function __construct () {
228223 }
229- protected function configure () {
224+ protected function configure (): void {
225+ }
226+ public function run (InputInterface $ input , OutputInterface $ output ): void {
230227 }
231- public function run ( InputInterface $ input , OutputInterface $ output ) {
228+ public function setName ( string $ name ): self {
232229 }
233- public function setName (string $ name ) {
230+ public function setDescription (string $ name ): self {
234231 }
235232 public function getHelper (string $ name ) {
236233 }
@@ -245,10 +242,9 @@ class NoopScanner {
245242}
246243
247244namespace Symfony \Component \Console \Helper {
248- use Symfony \Component \Console \Output \OutputInterface ;
249245
250246 class Table {
251- public function __construct (OutputInterface $ text ) {
247+ public function __construct (\ Symfony \ Component \ Console \ Output \ OutputInterface $ input ) {
252248 }
253249 public function setHeaders (array $ header ) {
254250 }
@@ -293,7 +289,7 @@ public function ask(InputInterface $input, OutputInterface $output, Question $qu
293289
294290namespace Symfony \Component \Console \Question {
295291 class ConfirmationQuestion {
296- public function __construct (string $ text , bool $ default ) {
292+ public function __construct () {
297293 }
298294 }
299295}
@@ -381,13 +377,11 @@ public static function cacheEntryFromData($data, IMimeTypeLoader $mimetypeLoader
381377 use OC \Files \Cache \Cache ;
382378
383379 class CacheWrapper extends Cache {
380+ public function getDirectDownloadById (string $ fileId ): array |false {
381+ }
384382 }
385383 class CachePermissionsMask extends CacheWrapper {
386- /**
387- * @param \OCP\Files\Cache\ICache $cache
388- * @param int $mask
389- */
390- public function __construct ($ cache , $ mask ) {
384+ public function __construct (\OCP \Files \Cache \ICache $ cache , int $ mask ) {
391385 }
392386
393387 protected function formatCacheEntry ($ entry ) {
@@ -396,41 +390,24 @@ protected function formatCacheEntry($entry) {
396390}
397391
398392namespace OC \Files {
399- use OCP \Files \Cache \ICacheEntry ;
400393
401394 class Filesystem {
402395 public static function addStorageWrapper (string $ wrapperName , callable $ wrapper , int $ priority = 50 ) {
403396 }
404397 }
405398
406399 class FileInfo implements \OCP \Files \FileInfo {
407- /**
408- * @param string|boolean $path
409- * @param \OCP\Files\Storage\IStorage $storage
410- * @param string $internalPath
411- * @param array|ICacheEntry $data
412- * @param \OCP\Files\Mount\IMountPoint $mount
413- * @param \OCP\IUser|null $owner
414- */
415- public function __construct ($ path , $ storage , $ internalPath , $ data , $ mount , $ owner = null ) {
416- }
417400 }
418401 class View {
419- public function __construct (string $ path ) {
420- }
421402 public function unlink ($ path ) {
422403 }
423404 }
424405}
425406
426407namespace OC \User {
427408 use OCP \IUser ;
428- use OCP \UserInterface ;
429- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
430409
431410 class User implements IUser {
432- public function __construct (string $ uid , ?UserInterface $ backend , EventDispatcherInterface $ dispatcher , $ emitter = null , ?IConfig $ config = null , $ urlGenerator = null ) {
433- }
434411 }
435412}
436413
@@ -451,40 +428,31 @@ public function getFileInfo(): \OCP\Files\FileInfo {
451428}
452429
453430namespace OC \Files \Mount {
454- use OC \Files \Storage \Storage ;
455431 use OCP \Files \Mount \IMountPoint ;
456432
457433 class MountPoint implements IMountPoint {
458434 /**
459435 * @var \OC\Files\Storage\Storage $storage
460436 */
461- protected $ storage = null ;
437+ protected $ storage ;
462438 protected $ class ;
463439 protected $ storageId ;
464- protected $ rootId = null ;
440+ protected $ rootId ;
465441
466442 /** @var int|null */
467443 protected $ mountId ;
468444
469445 /**
470- * @param string|\OCP\Files\Storage\IStorage $storage
471- * @param string $mountpoint
472- * @param array $arguments (optional) configuration for the storage backend
473- * @param \OCP\Files\Storage\IStorageFactory $loader
474- * @param array $mountOptions mount specific options
475- * @param int|null $mountId
476446 * @throws \Exception
477447 */
478- public function __construct ($ storage , $ mountpoint , $ arguments = null , $ loader = null , $ mountOptions = null , $ mountId = null ) {
448+ public function __construct () {
479449 throw new \Exception ('stub ' );
480450 }
481451
482452 /**
483453 * get complete path to the mount point, relative to data/
484- *
485- * @return string
486454 */
487- public function getMountPoint () {
455+ public function getMountPoint (): never {
488456 throw new \Exception ('stub ' );
489457 }
490458
@@ -493,43 +461,33 @@ public function getMountPoint() {
493461 *
494462 * @param string $mountPoint new mount point
495463 */
496- public function setMountPoint ($ mountPoint ) {
464+ public function setMountPoint ($ mountPoint ): never {
497465 throw new \Exception ('stub ' );
498466 }
499467
500- /**
501- * @return \OCP\Files\Storage\IStorage
502- */
503- public function getStorage () {
468+ public function getStorage (): never {
504469 throw new \Exception ('stub ' );
505470 }
506471
507- /**
508- * @return string
509- */
510- public function getStorageId () {
472+ public function getStorageId (): never {
511473 throw new \Exception ('stub ' );
512474 }
513475
514- /**
515- * @return int
516- */
517- public function getNumericStorageId () {
476+ public function getNumericStorageId (): never {
518477 throw new \Exception ('stub ' );
519478 }
520479
521480 /**
522481 * @param string $path
523- * @return string
524482 */
525- public function getInternalPath ($ path ) {
483+ public function getInternalPath ($ path ): never {
526484 throw new \Exception ('stub ' );
527485 }
528486
529487 /**
530488 * @param callable $wrapper
531489 */
532- public function wrapStorage ($ wrapper ) {
490+ public function wrapStorage ($ wrapper ): never {
533491 throw new \Exception ('stub ' );
534492 }
535493
@@ -538,33 +496,27 @@ public function wrapStorage($wrapper) {
538496 *
539497 * @param string $name Name of the mount option to get
540498 * @param mixed $default Default value for the mount option
541- * @return mixed
542499 */
543- public function getOption ($ name , $ default ) {
500+ public function getOption ($ name , $ default ): never {
544501 throw new \Exception ('stub ' );
545502 }
546503
547504 /**
548505 * Get all options for the mount
549- *
550- * @return array
551506 */
552- public function getOptions () {
507+ public function getOptions (): never {
553508 throw new \Exception ('stub ' );
554509 }
555510
556- /**
557- * @return int
558- */
559- public function getStorageRootId () {
511+ public function getStorageRootId (): never {
560512 throw new \Exception ('stub ' );
561513 }
562514
563- public function getMountId () {
515+ public function getMountId (): never {
564516 throw new \Exception ('stub ' );
565517 }
566518
567- public function getMountType () {
519+ public function getMountType (): never {
568520 throw new \Exception ('stub ' );
569521 }
570522 }
@@ -577,7 +529,6 @@ public function getMountType() {
577529 use OCP \Files \Cache \IScanner ;
578530 use OCP \Files \Cache \IUpdater ;
579531 use OCP \Files \Cache \IWatcher ;
580- use OCP \Files \Storage ;
581532 use OCP \Files \Storage \IStorage ;
582533 use OCP \Lock \ILockingProvider ;
583534
@@ -587,12 +538,6 @@ class Wrapper implements IStorage {
587538 */
588539 protected $ storage ;
589540
590- /**
591- * @param array $parameters
592- */
593- public function __construct ($ parameters ) {
594- }
595-
596541 public function getWrapperStorage (): IStorage {
597542 }
598543
@@ -724,16 +669,6 @@ public function instanceOfStorage($class): bool {
724669 public function getInstanceOfStorage (string $ class ): ?IStorage {
725670 }
726671
727- /**
728- * Pass any methods custom to specific storage implementations to the wrapped storage
729- *
730- * @param string $method
731- * @param array $args
732- * @return mixed
733- */
734- public function __call ($ method , $ args ) {
735- }
736-
737672 public function getDirectDownload ($ path ): array |false {
738673 }
739674
@@ -791,6 +726,12 @@ public function getQuota() {
791726 }
792727
793728 class PermissionsMask extends Wrapper {
729+ public int $ mask ;
730+ public \OCP \Files \Storage \IStorage $ storage ;
731+
732+ public function __construct ($ parameters ) {
733+ }
734+
794735 public function getQuota () {
795736 }
796737 }
0 commit comments