You are here

public function ParagonIE_Sodium_Core32_Curve25519_Fe::offsetGet in Automatic Updates 7

Same name and namespace in other branches
  1. 8 vendor/paragonie/sodium_compat/src/Core32/Curve25519/Fe.php \ParagonIE_Sodium_Core32_Curve25519_Fe::offsetGet()

@internal You should not use this directly from another application

@psalm-suppress MixedArrayOffset

Parameters

mixed $offset:

Return value

ParagonIE_Sodium_Core32_Int32

File

vendor/paragonie/sodium_compat/src/Core32/Curve25519/Fe.php, line 151

Class

ParagonIE_Sodium_Core32_Curve25519_Fe
Class ParagonIE_Sodium_Core32_Curve25519_Fe

Code

public function offsetGet($offset) {
  if (!isset($this->container[$offset])) {
    $this->container[(int) $offset] = new ParagonIE_Sodium_Core32_Int32();
  }

  /** @var ParagonIE_Sodium_Core32_Int32 $get */
  $get = $this->container[$offset];
  return $get;
}