Skip to content

Commit

Permalink
Add getPublishedStubFile() contract.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Mar 2, 2020
1 parent fa152ec commit 653b067
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Commands/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ public function codeHasBeenGenerated(string $className): int
return 0;
}

/**
* Get the published stub file for the generator.
*/
public function getPublishedStubFile(): ?string
{
return null;
}

/**
* Get the desired class name from the input.
*/
Expand Down
5 changes: 5 additions & 0 deletions src/Contracts/GeneratesCodeListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ public function codeAlreadyExists(string $className);
*/
public function codeHasBeenGenerated(string $className);

/**
* Get the stub file for the generator.
*/
public function getPublishedStubFile(): ?string;

/**
* Get the stub file for the generator.
*/
Expand Down

0 comments on commit 653b067

Please sign in to comment.