open-orchestra/open-orchestra-model-interface

View on GitHub
ModelInterface/Model/KeywordableInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace OpenOrchestra\ModelInterface\Model;

use Doctrine\Common\Collections\ArrayCollection;

/**
 * interface KeywordableInterface
 */
interface KeywordableInterface
{
    /**
     * @return ArrayCollection
     */
    public function getKeywords();

    /**
     * @param KeywordInterface $keyword
     */
    public function addKeyword(KeywordInterface $keyword);

    /**
     * @param KeywordInterface $keyword
     */
    public function removeKeyword(KeywordInterface $keyword);

    /**
     * Initialize keywords
     */
    public function initializeKeywords();
}