Sets the singular forn of the name to use in PHP
sources.

It will generate a phpName from its name if no
$phpSingularName is passed.

@param string $phpSingularName
13923
public function setPhpSingularName($phpSingularName = null)
    {
        if (null === $phpSingularName) {
            $this->phpSingularName = self::generatePhpSingularName($this->getPhpName());
        } else {
            $this->phpSingularName = $phpSingularName;
        }
    }
757285
public static function getSingularEntityName()
	{
		if ( isset(self::$entity_singular) && ! empty(self::$entity_singular))
			return self::$entity_singular;

		return str_singular(self::getEntityName());
	}
659281
public function setName($name)
    {
        $nameParts = explode(' ', $name);
        $this->Surname = array_pop($nameParts);
        $this->FirstName = join(' ', $nameParts);
    }
515280
public function setName($name = false) {
    if ($name === false || empty($name)) {
      $this->name = \Nuki\Handlers\Core\Assist::randomString();
      return;
    }
    
    $this->name = $name;
  }
736029
public function setTableName(string $tableName): void
    {
        $tableName = trim($tableName);

        if (empty($tableName)) {
            throw new InvalidArgumentException('tableName cannot be empty');
        }

        $this->tableName = $tableName;
    }
492661
public function setLastname($lastname)
    {
        if (!is_string($lastname) && !is_null($lastname)) {
            throw new \InvalidArgumentException(__CLASS__ . ' ' . __METHOD__ . ': Not a string');
        }

        $this->lastname = $lastname;

        return $this;
    }
628721
public function setName($name)
    {
        if (in_array($name, Statistics::asArray())) {
            $this->name = $name;
        } else {
            $msg = "The name argument must be a value from the Statistics enumeration, '" . $name . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
1127456
public function setName($name)
    {
        $this->name = is_string($name) ? ucfirst($name) : $this->name;
    }
49847
public function setName($name) {
    /** @var TokenNode $function_name */
    $function_name = $this->getName()->firstChild();
    $function_name->setText($name);
    return $this;
  }
709072
public function setName($value = null) {
    	if ($value !== NULL) {
    		// Old title
    		$oldTitle = $this->_name;

    		// Re-attach
    		if ($this->_worksheet !== NULL) {
    			$this->_worksheet->getParent()->removeNamedRange($this->_name,$this->_worksheet);
    		}
    		$this->_name = $value;

    		if ($this->_worksheet !== NULL) {
    			$this->_worksheet->getParent()->addNamedRange($this);
    		}

	    	// New title
	    	$newTitle = $this->_name;
	    	PHPExcel_ReferenceHelper::getInstance()->updateNamedFormulas($this->_worksheet->getParent(), $oldTitle, $newTitle);
    	}
    	return $this;
    }
306804
public function setPrimaryName(int $n = null): void
    {
        $this->getPrimaryName   = $n;
        $this->getSecondaryName = null;
    }
981487
public function setNextName ($name) {
		if (!isset($this->rule->next[$name])) {
			throw \ickx\fw2\core\exception\CoreException::RaiseSystemError('実在しないnext nameを指定されました。name:%s', [$name]);
		}
		$this->nextName = $name;
	}
1039712
public function setName($value)
    {
        $names = explode(' ', $value, 2);
        $this->setFirstName($names[0]);
        $this->setLastName(isset($names[1]) ? $names[1] : null);

        return $this;
    }
760506
public function set_name($name)
    {
        $previous_name = $this->name;

        $name = self::generateName($name, $this->app['unicode']);

        if ($name === '') {
            throw new \Exception_InvalidArgument();
        }

        $this->name = $name;

        if ($this->name !== $previous_name) {
            $this->renamed = true;
        }

        return $this;
    }
78147
public function setFirstname($firstname)
	{
		if ( $firstname == $this->getFirstname() ) { return; }

		$this->_values['firstname'] = (string) $firstname;
		$this->setModified();
	}
581816
public function setUuidPropertyName($propertyName)
    {
        if (!array_key_exists($propertyName, $this->properties)) {
            throw new \InvalidArgumentException('Property "' . $propertyName . '" must be added to the class schema before it can be marked as UUID property.', 1233863842);
        }
        $this->uuidPropertyName = $propertyName;
    }
531344
public function setName( $value )
	{
		if ( $value == $this->getName() ) { return; }

		$this->_values['name'] = (string) $value;
		$this->setModified();
	}