-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from Kharhamel/nameConflicts
better bean method names conflicts resolution
- Loading branch information
Showing
8 changed files
with
131 additions
and
59 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace TheCodingMachine\TDBM\Utils; | ||
|
||
use Zend\Code\Generator\MethodGenerator; | ||
|
||
interface RelationshipMethodDescriptorInterface extends MethodDescriptorInterface | ||
{ | ||
/** | ||
* Returns the name of the method to be generated. | ||
* | ||
* @return string | ||
*/ | ||
public function getName() : string; | ||
|
||
/** | ||
* Returns the name of the class that will be returned by the getter (short name). | ||
* | ||
* @return string | ||
*/ | ||
public function getBeanClassName(): string; | ||
|
||
/** | ||
* Requests the use of an alternative name for this method. | ||
*/ | ||
public function useAlternativeName(): void; | ||
|
||
/** | ||
* Returns the code of the method. | ||
* | ||
* @return MethodGenerator[] | ||
*/ | ||
public function getCode() : array; | ||
|
||
/** | ||
* Returns an array of classes that needs a "use" for this method. | ||
* | ||
* @return string[] | ||
*/ | ||
public function getUsedClasses() : array; | ||
|
||
/** | ||
* Returns the code to past in jsonSerialize. | ||
* | ||
* @return string | ||
*/ | ||
public function getJsonSerializeCode() : string; | ||
} |
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