@param string $name
@param array  $description

@return bool
336748
private function assertRelationshipNameAndDescription(string $name, array $description): bool
    {
        \assert(
            \is_string($name) === true && empty($name) === false,
            "Relationship names for type `" . $this->getType() . '` should be non-empty strings.'
        );
        \assert(
            \is_array($description) === true && empty($description) === false,
            "Relationship `$name` for type `" . $this->getType() . '` should be a non-empty array.'
        );

        return true;
    }
193712
private function getCreatedAt(Description $description)
    {
        $createdAt = $description->getOptionalProperty('createdAt');

        return ($createdAt !== null) ? (new \DateTimeImmutable())->setTimestamp($createdAt) : null;
    }
499259
private function getCoordinates(Description $description)
    {
        $latitude  = $description->getOptionalProperty('lat');
        $longitude = $description->getOptionalProperty('lng');

        if ($latitude === null || $longitude === null) {
            return null;
        }

        return new Coordinates($latitude, $longitude);
    }
1261292
public function setExtraColumn($name, $visible = false, $description = '')
    {
        $extraColumns = is_array($name)
            ? $name
            : [[$name, $visible, $description]];

        foreach ($extraColumns as $column) {
            if (! is_array($column))
                $column = [$column];

            $this->extraColumn[$column[0]] = [
                'name' => $column[0],
                'visible' => isset($column[1]) ? $column[1] : false,
                'description' => isset($column[2]) ? $column[2] : ''
            ];
        }

        return $this;
    }
713870
private function getTips(Description $description)
    {
        return array_map(
            function (\stdClass $tipDescription) {
                return $this->tipFactory->create(new Description($tipDescription));
            },
            $description->getOptionalProperty('items', [])
        );
    }
550028
protected function addParameter($name, $location, $required, $description = null)
    {
        $name = trim($name);

        if (strpos($name, ',') !== false) {
            foreach (explode(',', $name) as $subname) {
                $this->addParameter($subname, $location, $required, $description);
            }

            return;
        }

        $this->parameters[$name] = Parameter::build($location, $required, $description);
    }
274473
public function setDescription($description)
    {
        $this->description = $description;
        if($this->metaDescription == '') $this->metaDescription = strip_tags(substr ($this->description, 0, 200));

        return $this;
    }
147370
public function addArgument($name, $mode = null, $description = '', $default = null) {
        $this->definition->addArgument(new Argument($name, $mode, $description, $default));

        return $this;
    }
231356
public function setDescription($description = null)
    {
        if ($this->getMajorProtocolVersion() == 2) {
            require_once 'Zend/Gdata/App/VersionException.php';
            throw new Zend_Gdata_App_VersionException('The setDescription ' .
                ' method is only supported in version 1 of the YouTube ' .
                'API.');
        } else {
            $this->_description = $description;
            return $this;
        }
    }
233723
public function hasText(string $name) : bool
    {
        return $this->textContentAreas->any(function (TextContentArea $contentArea) use ($name) {
            return $contentArea->name === $name;
        });
    }
1173334
public function createPermission($name, $key = null, $description = null)
    {
        $key        =   snake_case(isset($key) ? $key : $name);
        $description=   isset($description) ? $description : $name;
        $values     =   compact('name', 'key', 'description');

        return $this->permissionProvider->create($values);
    }
951233
private function setDescription($description = null)
    {
        if (isset($description) && ! is_string($description)) {
            throw new InvalidArgumentException("Description must be a string. [$description] given.");
        }

        $this->description = $description;
    }
529983
public function actionSet ($name, $value, $description = null)
		{
			$class = $this->_modelClass;
			$object = $class::find()->where([ 'name' => $name ])->one();
			if ($object == null)
			{
				Console::printColor('Setting not found.', 'red');
				Yii::$app->end();
			}
			else
			{
				$object->value = $value;
				if (!is_null($description))
					$object->description = $description;
			}
			$object->save();
			$this->actionList();
		}
1234356
public function editDescription(Description $description)
    {
        $this->guardNotDeleted();

        if ($description !== $this->description) {
            $this->apply(new DescriptionEdited($this->id, $description));
        }
    }
521068
public static function drawParam($name, $description, $values = '')
    {
        self::$columns = self::getMaxColumns();
        $paramw = round(self::$columns / 3);

        echo "\n";

        $leftcolumn = array();

        $valstr = is_array($values) ? implode('|', array_keys($values)) : $values;

        if ('' !== $valstr) {
            $valstr = '=[' . $valstr . ']';
        }

        $paramstr = "  \033[1m--" . $name . $valstr . "\033[0m";

        $pl = strlen($paramstr);
        if ($pl + 2 >= $paramw) {
            $paramw = $pl + 3;
        }

        $descw = self::$columns - $paramw;

        $leftcolumn[] = $paramstr;

        if (is_array($values)) {
            foreach ($values as $key => $value) {
                $leftcolumn[] = '    ' . $key . ' - ' . $value;
            }
        }

        if (strlen($description) <= $descw) {
            $rightcolumn[] = $description;
        } else {
            $m = explode(' ', $description);

            $descstr = '';

            while (sizeof($m) > 0) {
                $el = array_shift($m);

                if (strlen($descstr) + strlen($el) >= $descw) {
                    $rightcolumn[] = $descstr;
                    $descstr = '';
                } else {
                    $descstr .= ' ';
                }

                $descstr .= $el;
            }

            if ('' !== $descstr) {
                $rightcolumn[] = $descstr;
            }
        }

        while (
            sizeof($leftcolumn) > 0
            || sizeof($rightcolumn) > 0
        ) {
            if ($l = array_shift($leftcolumn)) {
                echo str_pad($l, $paramw, ' ');
            } else {
                echo str_repeat(' ', $paramw - 7);
            }

            if ($r = array_shift($rightcolumn)) {
                echo $r;
            }

            echo "\n";
        }
    }
1155697
protected function setDescription($description = null)
    {
        if ($description) {
            $description = strip_tags($description);
        }

        $this->description = $description;

        return $this;
    }
721944
public function add($name, $class, $description = null) {

        if ( array_key_exists($name, $this->data) ) {
            $this->logger->warning("Skipping duplicate task $name ($class)");
            return false;
        }

        if ( empty($name) || empty($class) || !class_exists($class) ) {
            $this->logger->warning("Skipping invalid task definition", array(
                "NAME"       => $name,
                "CLASS"      => $class,
                "DESCRIPTION"=> $description
            ));
            return false;
        }

        $this->data[$name] = new TaskItem(
            $this->getConfiguration(),
            $this->getEvents(),
            $this->getLogger(),
            $name,
            $class,
            $description
        );

        $this->logger->debug("Task $name ($class) in table");

        return true;

    }