Skip to content

Commit

Permalink
Rebuild test files
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed Jun 17, 2024
1 parent 8b5e244 commit 42a19d6
Show file tree
Hide file tree
Showing 42 changed files with 140 additions and 140 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace Grafana\Foundation\Types\Dashboard;

class Dashboard
{
public string $title;

/**
* @var array<\Grafana\Foundation\Types\Dashboard\Panel>
*/
public ?array $panels;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\Dashboard;
namespace Grafana\Foundation\Types\Dashboard;

class DataSourceRef
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\Dashboard;
namespace Grafana\Foundation\Types\Dashboard;

class FieldConfig
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Grafana\Foundation\Types\Dashboard;

class FieldConfigSource
{
public ?\Grafana\Foundation\Types\Dashboard\FieldConfig $defaults;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace Grafana\Foundation\Types\Dashboard;

class Panel
{
public string $title;

public string $type;

public ?\Grafana\Foundation\Types\Dashboard\DataSourceRef $datasource;

/**
* @var mixed
*/
public $options;

/**
* @var array<\Grafana\Foundation\Runtime\Variants\Dataquery>
*/
public ?array $targets;

public ?\Grafana\Foundation\Types\Dashboard\FieldConfigSource $fieldConfig;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\Enums;
namespace Grafana\Foundation\Types\Enums;

/**
* 0 for no shared crosshair or tooltip (default).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\Enums;
namespace Grafana\Foundation\Types\Enums;

final class LogsSortOrder implements \JsonSerializable, \Stringable {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\Enums;
namespace Grafana\Foundation\Types\Enums;

/**
* This is a very interesting string enum.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\Enums;
namespace Grafana\Foundation\Types\Enums;

final class TableSortOrder implements \JsonSerializable, \Stringable {
/**
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Types\Defaults;
namespace Grafana\Foundation\Types\Defaults;

class DefaultsStructComplexField
{
public string $uid;

public \Types\Defaults\DefaultsStructComplexFieldNested $nested;
public \Grafana\Foundation\Types\Defaults\DefaultsStructComplexFieldNested $nested;

/**
* @var array<string>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\Defaults;
namespace Grafana\Foundation\Types\Defaults;

class DefaultsStructComplexFieldNested
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\Defaults;
namespace Grafana\Foundation\Types\Defaults;

class DefaultsStructPartialComplexField
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\Defaults;
namespace Grafana\Foundation\Types\Defaults;

class NestedStruct
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Grafana\Foundation\Types\Defaults;

class Struct
{
public \Grafana\Foundation\Types\Defaults\NestedStruct $allFields;

public \Grafana\Foundation\Types\Defaults\NestedStruct $partialFields;

public \Grafana\Foundation\Types\Defaults\NestedStruct $emptyFields;

public \Grafana\Foundation\Types\Defaults\DefaultsStructComplexField $complexField;

public \Grafana\Foundation\Types\Defaults\DefaultsStructPartialComplexField $partialComplexField;
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

namespace Grafana\Foundation\Types\Refs;

class RefToSomeStruct extends \Grafana\Foundation\Types\Refs\SomeStruct {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

namespace Grafana\Foundation\Types\Refs;

class RefToSomeStructFromOtherPackage extends \Grafana\Foundation\Types\Otherpkg\SomeDistantStruct {}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\Refs;
namespace Grafana\Foundation\Types\Refs;

class SomeStruct
{
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

namespace Grafana\Foundation\Types\StructComplexFields;

const CONNECTION_PATH = "straight";
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\StructComplexFields;
namespace Grafana\Foundation\Types\StructComplexFields;

class SomeOtherStruct
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<?php

namespace Types\StructComplexFields;
namespace Grafana\Foundation\Types\StructComplexFields;

/**
* This struct does things.
*/
class SomeStruct
{
public \Types\StructComplexFields\SomeOtherStruct $fieldRef;
public \Grafana\Foundation\Types\StructComplexFields\SomeOtherStruct $fieldRef;

/**
* @var string|bool
*/
public $fieldDisjunctionOfScalars;

/**
* @var string|\Types\StructComplexFields\SomeOtherStruct
* @var string|\Grafana\Foundation\Types\StructComplexFields\SomeOtherStruct
*/
public $fieldMixedDisjunction;

public ?string $fieldDisjunctionWithNull;

public \Types\StructComplexFields\SomeStructOperator $operator;
public \Grafana\Foundation\Types\StructComplexFields\SomeStructOperator $operator;

/**
* @var array<string>
Expand All @@ -33,7 +33,7 @@ class SomeStruct
*/
public array $fieldMapOfStringToString;

public \Types\StructComplexFields\StructComplexFieldsSomeStructFieldAnonymousStruct $fieldAnonymousStruct;
public \Grafana\Foundation\Types\StructComplexFields\StructComplexFieldsSomeStructFieldAnonymousStruct $fieldAnonymousStruct;

public string $fieldRefToConstant;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\StructComplexFields;
namespace Grafana\Foundation\Types\StructComplexFields;

final class SomeStructOperator implements \JsonSerializable, \Stringable {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\StructComplexFields;
namespace Grafana\Foundation\Types\StructComplexFields;

class StructComplexFieldsSomeStructFieldAnonymousStruct
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\Defaults;
namespace Grafana\Foundation\Types\Defaults;

class SomeStruct
{
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\StructOptionalFields;
namespace Grafana\Foundation\Types\StructOptionalFields;

class SomeOtherStruct
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace Grafana\Foundation\Types\StructOptionalFields;

class SomeStruct
{
public ?\Grafana\Foundation\Types\StructOptionalFields\SomeOtherStruct $fieldRef;

public ?string $fieldString;

public ?\Grafana\Foundation\Types\StructOptionalFields\SomeStructOperator $operator;

/**
* @var array<string>
*/
public ?array $fieldArrayOfStrings;

public ?\Grafana\Foundation\Types\StructOptionalFields\StructOptionalFieldsSomeStructFieldAnonymousStruct $fieldAnonymousStruct;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\StructOptionalFields;
namespace Grafana\Foundation\Types\StructOptionalFields;

final class SomeStructOperator implements \JsonSerializable, \Stringable {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Types\StructOptionalFields;
namespace Grafana\Foundation\Types\StructOptionalFields;

class StructOptionalFieldsSomeStructFieldAnonymousStruct
{
Expand Down
Loading

0 comments on commit 42a19d6

Please sign in to comment.