public function addUseStatement(string $qualifiedName, string $alias = null) {
		if (!is_string($alias)) {
			if (false === strpos($qualifiedName, '\\')) {
				$alias = $qualifiedName;
			} else {
				$alias = substr($qualifiedName, strrpos($qualifiedName, '\\') + 1);
			}
		}

		$this->useStatements->set($alias, $qualifiedName);

		return $this;
	}
public function addUseStatement(string $qualifiedName, string $alias = null) {
		if (!is_string($alias)) {
			if (false === strpos($qualifiedName, '\\')) {
				$alias = $qualifiedName;
			} else {
				$alias = substr($qualifiedName, strrpos($qualifiedName, '\\') + 1);
			}
		}

		$this->useStatements->set($alias, $qualifiedName);

		return $this;
	}
public function addUseStatement ( string $ qualifiedName , string $ alias = null ) { if ( ! is_string ( $ alias ) ) { if ( false === strpos ( $ qualifiedName , '\\' ) ) { $ alias = $ qualifiedName ; } else { $ alias = substr ( $ qualifiedName , strrpos ( $ qualifiedName , '\\' ) + 1 ) ; } } $ this -> useStatements -> set ( $ alias , $ qualifiedName ) ; return $ this ; }
Adds a use statement with an optional alias

@param string $qualifiedName
@param null|string $alias
@return $this
Adds a use statement with an optional alias