NamespaceInterface.php 892 Bytes
Newer Older
1
2
<?php
/*
Guillaume Perréal's avatar
CS.    
Guillaume Perréal committed
3
4
 * Copyright (C) 2016-2017 IRSTEA
 * All rights reserved.
5
6
7
8
 */

namespace Irstea\PlantUmlBundle\Model;

9
10
use Irstea\PlantUmlBundle\Writer\WritableInterface;

11
interface NamespaceInterface extends WritableInterface, ToConfigInterface
12
13
14
{
    /**
     * @param string $namespaceName
Guillaume Perréal's avatar
CS.    
Guillaume Perréal committed
15
     *
16
17
18
19
     * @return NamespaceInterface
     */
    public function getNamespace($namespaceName);

20
    /**
21
     * @param string $className
Guillaume Perréal's avatar
CS.    
Guillaume Perréal committed
22
     *
23
24
     * @return string
     */
25
26
27
28
    public function getNodeId($className);

    /**
     * @param string $className
Guillaume Perréal's avatar
CS.    
Guillaume Perréal committed
29
     *
30
31
32
     * @return string
     */
    public function getNodeLabel($className);
33

34
    /**
35
     * @param NodeInterface $node
Guillaume Perréal's avatar
CS.    
Guillaume Perréal committed
36
     *
37
38
     * @return self
     */
39
    public function addNode(NodeInterface $node);
40
41

    /**
42
     * @param ArrowInterface $arrow
Guillaume Perréal's avatar
CS.    
Guillaume Perréal committed
43
     *
44
45
     * @return self
     */
46
    public function addArrow(ArrowInterface $arrow);
47
}