Skip to content

Commit

Permalink
All addons must be JSON serializeable
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Jun 16, 2024
1 parent 28decd2 commit d630e3e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
13 changes: 13 additions & 0 deletions src/AddOn/AbstractAddOn.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

declare(strict_types=1);

namespace Mammatus\Kubernetes\Contracts\AddOn;

interface AbstractAddOn extends \JsonSerializable
{
/**
* The Helper to call
*/
public function helper(): string;
}
6 changes: 1 addition & 5 deletions src/AddOn/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

namespace Mammatus\Kubernetes\Contracts\AddOn;

interface Container
interface Container extends AbstractAddOn
{
/**
* The Helper to call
*/
public function helper(): string;
}
6 changes: 1 addition & 5 deletions src/AddOn/Deployment.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

namespace Mammatus\Kubernetes\Contracts\AddOn;

interface Deployment
interface Deployment extends AbstractAddOn
{
/**
* The Helper to call
*/
public function helper(): string;
}

0 comments on commit d630e3e

Please sign in to comment.