-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: gitattributes and psalm 1 level
- Loading branch information
darkdarin
committed
Feb 1, 2024
1 parent
d5bd286
commit 428b3d1
Showing
43 changed files
with
395 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/.github export-ignore | ||
/vendor export-ignore | ||
.editorconfig export-ignore | ||
/.gitignore export-ignore | ||
/composer.lock export-ignore | ||
/phpunit.xml export-ignore | ||
/pint.json export-ignore | ||
/psalm.xml export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0"?> | ||
<psalm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" | ||
errorLevel="1" | ||
findUnusedBaselineEntry="true" | ||
findUnusedCode="true" | ||
> | ||
<projectFiles> | ||
<directory name="src" /> | ||
<ignoreFiles> | ||
<directory name="vendor" /> | ||
</ignoreFiles> | ||
</projectFiles> | ||
</psalm> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace DarkDarin\PhpEntityRenderer\Contracts; | ||
|
||
use DarkDarin\PhpEntityRenderer\Renderers\AttributeRenderer; | ||
|
||
/** | ||
* @psalm-api | ||
*/ | ||
interface HasAttributesInterface | ||
{ | ||
public function getAttributes(): array; | ||
public function addAttribute(AttributeRenderer $attribute): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace DarkDarin\PhpEntityRenderer\Contracts; | ||
|
||
use DarkDarin\PhpEntityRenderer\Renderers\ConstantRenderer; | ||
|
||
/** | ||
* @psalm-api | ||
*/ | ||
interface HasConstantsInterface | ||
{ | ||
public function getConstants(): array; | ||
|
||
public function addConstant(ConstantRenderer $constant): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace DarkDarin\PhpEntityRenderer\Contracts; | ||
|
||
use DarkDarin\PhpEntityRenderer\Renderers\DocBlockRenderer; | ||
|
||
/** | ||
* @psalm-api | ||
*/ | ||
interface HasDocBlockInterface | ||
{ | ||
public function getDocBlock(): DocBlockRenderer; | ||
|
||
public function addComment(string $comment = ''): self; | ||
|
||
public function setDocBlock(DocBlockRenderer $docBlock): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace DarkDarin\PhpEntityRenderer\Contracts; | ||
|
||
use DarkDarin\PhpEntityRenderer\EntityAliases; | ||
|
||
/** | ||
* @psalm-api | ||
*/ | ||
interface HasExtendsInterface | ||
{ | ||
public function getExtends(): ?string; | ||
|
||
/** | ||
* @param EntityAliases $entityAliases | ||
* @param class-string $className | ||
* @return $this | ||
*/ | ||
public function setExtends(EntityAliases $entityAliases, string $className): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace DarkDarin\PhpEntityRenderer\Contracts; | ||
|
||
use DarkDarin\PhpEntityRenderer\EntityAliases; | ||
|
||
/** | ||
* @psalm-api | ||
*/ | ||
interface HasImplementsInterface | ||
{ | ||
public function getImplements(): array; | ||
|
||
/** | ||
* @param EntityAliases $entityAliases | ||
* @param class-string ...$classNames | ||
* @return $this | ||
*/ | ||
public function addImplements(EntityAliases $entityAliases, string ...$classNames): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace DarkDarin\PhpEntityRenderer\Contracts; | ||
|
||
use DarkDarin\PhpEntityRenderer\Renderers\MethodRenderer; | ||
|
||
/** | ||
* @psalm-api | ||
*/ | ||
interface HasMethodsInterface | ||
{ | ||
public function getMethods(): array; | ||
|
||
public function addMethod(MethodRenderer $method): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace DarkDarin\PhpEntityRenderer\Contracts; | ||
|
||
use DarkDarin\PhpEntityRenderer\Enums\InheritanceModifierEnum; | ||
|
||
/** | ||
* @psalm-api | ||
*/ | ||
interface HasModifierInheritanceInterface | ||
{ | ||
public function getInheritanceModifier(): ?InheritanceModifierEnum; | ||
|
||
public function setInheritanceModifier(InheritanceModifierEnum $inheritanceModifier): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace DarkDarin\PhpEntityRenderer\Contracts; | ||
|
||
/** | ||
* @psalm-api | ||
*/ | ||
interface HasModifierReadonlyInterface | ||
{ | ||
public function isReadonly(): bool; | ||
|
||
public function setReadonly(bool $isReadonly = true): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace DarkDarin\PhpEntityRenderer\Contracts; | ||
|
||
/** | ||
* @psalm-api | ||
*/ | ||
interface HasModifierStaticInterface | ||
{ | ||
public function isStatic(): bool; | ||
|
||
public function setStatic(bool $isStatic = true): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace DarkDarin\PhpEntityRenderer\Contracts; | ||
|
||
use DarkDarin\PhpEntityRenderer\Enums\VisibilityModifierEnum; | ||
|
||
/** | ||
* @psalm-api | ||
*/ | ||
interface HasModifierVisibilityInterface | ||
{ | ||
public function getVisibilityModifier(): ?VisibilityModifierEnum; | ||
|
||
public function setVisibilityModifier(?VisibilityModifierEnum $visibilityModifier = null): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace DarkDarin\PhpEntityRenderer\Contracts; | ||
|
||
use DarkDarin\PhpEntityRenderer\Renderers\PropertyRenderer; | ||
|
||
/** | ||
* @psalm-api | ||
*/ | ||
interface HasPropertiesInterface | ||
{ | ||
public function getProperties(): array; | ||
|
||
public function getDynamicProperties(): array; | ||
|
||
public function addProperty(PropertyRenderer $property): self; | ||
|
||
public function addDynamicProperty(PropertyRenderer $property): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace DarkDarin\PhpEntityRenderer\Contracts; | ||
|
||
use DarkDarin\PhpEntityRenderer\EntityAliases; | ||
|
||
/** | ||
* @psalm-api | ||
*/ | ||
interface HasTraitsInterface | ||
{ | ||
public function getTraits(): array; | ||
|
||
/** | ||
* @param EntityAliases $entityAliases | ||
* @param class-string ...$classNames | ||
* @return $this | ||
*/ | ||
public function addTraits(EntityAliases $entityAliases, string ...$classNames): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.