open-orchestra/open-orchestra-display-bundle

View on GitHub
DisplayBundle/Fake/FakeContentAttribute.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace OpenOrchestra\DisplayBundle\Fake;

use OpenOrchestra\ModelInterface\Model\ReadContentAttributeInterface;

/**
 * Class FakeContentAttribute
 */
class FakeContentAttribute implements ReadContentAttributeInterface
{
    protected $name;
    protected $value;

    /**
     * @param string $name
     */
    public function __construct($name)
    {
        $this->name = $name;
        $this->value = $name . ' value';
    }

    /**
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @return string
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * @return string
     */
    public function __toString()
    {
        return $this->getValue();
    }

    /**
     * @return string
     */
    public function  getStringValue()
    {
        return $this->getValue();
    }
}