File: tests/JSONPathTestClass.php

Recommend this page to a friend!
  Classes of Sascha Greuel  >  PHP JSON Path  >  tests/JSONPathTestClass.php  >  Download  
File: tests/JSONPathTestClass.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP JSON Path
Query values from data structures like XPATH
Author: By
Last change:
Date: 11 months ago
Size: 509 bytes
 

Contents

Class file image Download
<?php

/**
 * JSONPath implementation for PHP.
 *
 * @license https://github.com/SoftCreatR/JSONPath/blob/main/LICENSE MIT License
 */

declare(strict_types=1);

namespace
Flow\JSONPath\Test;

class
JSONPathTestClass
{
   
/**
     * @var string[]
     */
   
protected $attributes = [
       
'foo' => 'bar',
    ];

   
/**
     * @param $key
     * @noinspection MagicMethodsValidityInspection
     */
   
public function __get($key): ?string
   
{
        return
$this->attributes[$key] ?? null;
    }
}

For more information send a message to info at phpclasses dot org.