PHP Classes

File: src/Graph/EdgeType.php

Recommend this page to a friend!
  Packages of DeGraciaMathieu   PHP Dep   src/Graph/EdgeType.php   Download  
File: src/Graph/EdgeType.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: PHP Dep
Analyse the dependencies of classes in a project
Author: By
Last change:
Date: 9 months ago
Size: 1,055 bytes
 

 

Contents

Class file image Download
<?php

declare(strict_types=1);

namespace PhpDep\Graph;

enum EdgeType: string
{
    // Structural
    case EXTENDS_CLASS   = 'extends';
    case IMPLEMENTS_INTERFACE = 'implements';
    case USES_TRAIT      = 'uses_trait';

    // Type hints (parameters, return types, properties)
    case PARAM_TYPE      = 'param_type';
    case RETURN_TYPE     = 'return_type';
    case PROPERTY_TYPE   = 'property_type';
    case ATTRIBUTE       = 'attribute';

    // Instantiation & calls
    case INSTANTIATES    = 'instantiates';
    case STATIC_CALL     = 'static_call';
    case STATIC_PROPERTY = 'static_property';
    case CONST_ACCESS    = 'const_access';

    // Control flow
    case INSTANCEOF_CHECK = 'instanceof';
    case CATCHES          = 'catches';
    case THROWS           = 'throws';

    // Docblock (Tier 2)
    case DOCBLOCK_PARAM  = 'docblock_param';
    case DOCBLOCK_RETURN = 'docblock_return';
    case DOCBLOCK_VAR    = 'docblock_var';
    case DOCBLOCK_THROWS = 'docblock_throws';

    // Misc
    case TYPE_HINT       = 'type_hint';
}