src/ValidationError.php
public function getContext()
    {
        if ($this->context === null) {
            $this->context = array_map(
                'League\JsonGuard\as_string',
                [
                    self::KEYWORD     => $this->keyword,
                    self::PARAMETER   => $this->parameter,
                    self::DATA        => $this->data,
                    self::DATA_PATH   => $this->dataPath,
                    self::SCHEMA      => $this->schema,
                    self::SCHEMA_PATH => $this->schemaPath,
                    self::CAUSE       => $this->getCause(),
                ]
            );
        }

        return $this->context;
    }
public function getContext()
    {
        if ($this->context === null) {
            $this->context = array_map(
                'League\JsonGuard\as_string',
                [
                    self::KEYWORD     => $this->keyword,
                    self::PARAMETER   => $this->parameter,
                    self::DATA        => $this->data,
                    self::DATA_PATH   => $this->dataPath,
                    self::SCHEMA      => $this->schema,
                    self::SCHEMA_PATH => $this->schemaPath,
                    self::CAUSE       => $this->getCause(),
                ]
            );
        }

        return $this->context;
    }
public function getContext ( ) { if ( $ this -> context === null ) { $ this -> context = array_map ( 'League\JsonGuard\as_string' , [ self :: KEYWORD => $ this -> keyword , self :: PARAMETER => $ this -> parameter , self :: DATA => $ this -> data , self :: DATA_PATH => $ this -> dataPath , self :: SCHEMA => $ this -> schema , self :: SCHEMA_PATH => $ this -> schemaPath , self :: CAUSE => $ this -> getCause ( ) , ] ) ; } return $ this -> context ; }
Get the context that applied to the failed assertion.

@return string[]
Get the context that applied to the failed assertion .