Api\StructType\ApiNewsArticle::setSource PHP Method

setSource() public method

Set Source value
public setSource ( string $source = null ) : ApiNewsArticle
$source string
return ApiNewsArticle
    public function setSource($source = null)
    {
        // validation for constraint: string
        if (!is_null($source) && !is_string($source)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($source)), __LINE__);
        }
        $this->Source = $source;
        return $this;
    }