* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FreeDSx\Ldap\Search\Filter; /** * Common methods for filters using attributes. * * @author Chad Sikorra */ trait FilterAttributeTrait { /** * @var string */ protected $attribute; /** * @return string */ public function getAttribute(): string { return $this->attribute; } /** * @param string $attribute * @return $this */ public function setAttribute(string $attribute) { $this->attribute = $attribute; return $this; } /** * {@inheritdoc} */ public function __toString() { return $this->toString(); } }