Skip to content

Commit

Permalink
fix: add missing class
Browse files Browse the repository at this point in the history
  • Loading branch information
regnerisch committed Jul 21, 2022
1 parent 1f0fd91 commit 8fa2fd1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/Schema/BaseSchema.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace Regnerisch\LaravelBeyond\Schema;

use Regnerisch\LaravelBeyond\Contracts\Schema;

abstract class BaseSchema implements Schema
{
public function __construct(
protected string $namespace,
protected string $className
) {
}

public function namespace(): string
{
return str_replace('/', '\\', $this->namespace);
}

public function namespacePath(): string
{
return str_replace('\\', '/', $this->namespace);
}

public function className(): string
{
return $this->className;
}

abstract public function path(string $directory): string;
}

0 comments on commit 8fa2fd1

Please sign in to comment.