-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
130 additions
and
9 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
34 changes: 34 additions & 0 deletions
34
src/phpDocumentor/GraphViz/Contract/AttributesAwareInterface.php
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,34 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* phpDocumentor. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @see http://phpdoc.org | ||
*/ | ||
|
||
namespace phpDocumentor\GraphViz\Contract; | ||
|
||
use phpDocumentor\GraphViz\Attribute; | ||
|
||
interface AttributesAwareInterface | ||
{ | ||
/** | ||
* @param string $name | ||
* | ||
* @return \phpDocumentor\GraphViz\Attribute | ||
*/ | ||
public function getAttribute(string $name): Attribute; | ||
|
||
/** | ||
* @param string $name | ||
* @param string $value | ||
* | ||
* @return mixed | ||
*/ | ||
public function setAttribute(string $name, string $value); | ||
} |
31 changes: 31 additions & 0 deletions
31
src/phpDocumentor/GraphViz/Contract/GraphAwareInterface.php
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,31 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* phpDocumentor. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @see http://phpdoc.org | ||
*/ | ||
|
||
namespace phpDocumentor\GraphViz\Contract; | ||
|
||
use phpDocumentor\GraphViz\Graph; | ||
|
||
interface GraphAwareInterface | ||
{ | ||
/** | ||
* @return \phpDocumentor\GraphViz\Graph|null | ||
*/ | ||
public function getGraphRoot(): ?Graph; | ||
|
||
/** | ||
* @param \phpDocumentor\GraphViz\Graph $graph | ||
* | ||
* @return mixed | ||
*/ | ||
public function setGraphRoot(Graph $graph); | ||
} |
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,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* phpDocumentor. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @see http://phpdoc.org | ||
*/ | ||
|
||
namespace phpDocumentor\GraphViz; | ||
|
||
trait GraphAware | ||
{ | ||
/** @var null|\phpDocumentor\GraphViz\Graph */ | ||
protected $graph; | ||
|
||
public function getGraphRoot(): ?Graph | ||
{ | ||
return $this->graph; | ||
} | ||
|
||
public function setGraphRoot(Graph $graph): void | ||
{ | ||
$this->graph = $graph; | ||
} | ||
} |
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