Skip to content

Commit

Permalink
Merge pull request #63 from ajthinking/separate-maker
Browse files Browse the repository at this point in the history
Separate maker
  • Loading branch information
ajthinking authored Apr 23, 2022
2 parents 01791d1 + be41437 commit 3f9e9e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 109 deletions.
95 changes: 0 additions & 95 deletions src/Endpoints/Laravel/LaravelMake.php

This file was deleted.

13 changes: 4 additions & 9 deletions src/PHPFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class PHPFile

protected string $fileQueryBuilder = Endpoints\PHP\PHPFileQueryBuilder::class;

protected string $maker = Endpoints\PHP\Make::class;

public string $astQueryBuilder = ASTQueryBuilder::class;

protected $ast;
Expand Down Expand Up @@ -80,17 +82,10 @@ public function getReflection()
$handler = new ReflectionProxy($this);
return $handler->getReflection();
}

public function file(string $name = 'dummy.php')
{
$handler = new Make($this);
return $handler->file($name);
}

public function class($name = \App\Dummy::class)
public function make()
{
$handler = new Make($this);
return $handler->class($name);
return new $this->maker($this);
}

public function __construct(
Expand Down
5 changes: 0 additions & 5 deletions src/Traits/HasSyntacticSweeteners.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ public function it()
return $this;
}

public function make()
{
return $this;
}

public function please()
{
return $this;
Expand Down

0 comments on commit 3f9e9e7

Please sign in to comment.