adding traits suport to the PhpClassEditor
Merge branch 'master' of https://github.com/juanmf/SourceEditor
added addInterface feature. Combined with Traits it has a great potential:

        $classes = $this->phpClassEditor->parseFile($classPath);
        $document = end($classes);
        $document->addUse('use DoctrineExtensions\Taggable\Taggable;');
        $document->addUse('use DocDigital\Bundle\DocumentBundle\Entity\Traits\TaggableTrait;');
        $document->addInterface('Taggable');
        $document->addTrait('    use TaggableTrait;');

Applying previous commands to
<?php

namespace DocDigital\Bundle\DocumentBundle\Entity\CustomDocument;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use DocDigital\Bundle\DocumentBundle\Form\ExtraType\Annotation as DdMapping;

/**
 * Iface
 *
 * @ORM\Table(name="custom_doc_iface")
 * @ORM\Entity
 */
class Iface extends \DocDigital\Bundle\DocumentBundle\Entity\Document
{...

renders:
<?php

namespace DocDigital\Bundle\DocumentBundle\Entity\CustomDocument;

use Doctrine\ORM\Mapping as ORM;
use DoctrineExtensions\Taggable\Taggable;
use DocDigital\Bundle\DocumentBundle\Entity\Traits\TaggableTrait;
use Symfony\Component\Validator\Constraints as Assert;
use DocDigital\Bundle\DocumentBundle\Form\ExtraType\Annotation as DdMapping;

/**
 * Iface
 *
 * @ORM\Table(name="custom_doc_iface")
 * @ORM\Entity
 */
class Iface extends \DocDigital\Bundle\DocumentBundle\Entity\Document
 implements Taggable{
    use TaggableTrait;
...