HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/delta/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wpml/src/DicInterface.php
<?php

namespace WPML;

interface DicInterface {


  /**
   * @template T
   *
   * @param class-string<T>                   $classname
   * @param array<string>|array<string,mixed> $args
   *
   * Auryn returns 'mixed' so we need to ignore the type checking here.
   *
   * @psalm-suppress MixedInferredReturnType
   * @psalm-suppress MixedReturnStatement
   *
   * @return T
   */
  public function make( $classname, $args = [] );


  /**
   * Takes a classname or an object to pass it on further usages as singleton.
   *
   * @param string|object $classnameOrObject
   *
   * @return void
   */
  public function share( $classnameOrObject );


  /**
   * Define instantiation directives for the specified class
   *
   * @param string               $name The class to define arguments for.
   * @param array<string, mixed> $args An array mapping parameter names to values.
   *
   * @return void
   */
  public function define( $name, array $args );


  /**
   * Allows to define a global param.
   *
   * @param string $name
   * @param mixed  $value
   *
   * @return void
   */
  public function defineParam( $name, $value );


  /**
   * Defines which implementation should be used for an interface type hint.
   *
   * @param string $interfaceName
   * @param string $implementationName
   *
   * @return void
   */
  public function alias( $interfaceName, $implementationName );


  /**
   * @param string $name
   * @param callable $factory
   *
   * @return void
   */
  public function delegate( $name, $factory );


}