# responsive-menu/3.0.6/src/app/Models/Option.php

Responsive Menu – Create Mobile-Friendly Menu, version 3.0.6. 46 lines.

- Page: https://pluginprobe.com/plugins/responsive-menu/3.0.6/code/src/app/Models/Option.php
- Raw: https://pluginprobe.com/plugins/responsive-menu/3.0.6/raw/src/app/Models/Option.php
- Modified: 2016-07-22T17:19:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/responsive-menu/3.0.6/code/src/app/Models/Option.php#L10-L20`.

```php
<?php

namespace ResponsiveMenu\Models;
use ResponsiveMenu\Filters\Filter as Filter;

class Option {

	private $value;
	private $name;
  private $filter;

	public function __construct($name, $value) {
		$this->name = $name;
		$this->value = $value;
	}

  public function setFilter(Filter $filter) {
    $this->filter = $filter;
  }

	public function getName() {
		return $this->name;
	}

	public function getValue() {
		return $this->value;
	}

	public function setValue($value) {
		$this->value = $value;
	}

  public function getFiltered() {
    return $this->filter->filter($this->value);
  }

	public function getFilter() {
		return $this->filter;
	}

	public function __toString() {
		return (string) $this->value;
	}

}

```
