src/Entity/Organization.php
public function setContact(EntityInterface $contact = null)
    {
        if (!$contact instanceof OrganizationContact) {
            $contact = new OrganizationContact($contact);
        }
        $this->contact = $contact;

        return $this;
    }
public function setContact(EntityInterface $contact = null)
    {
        if (!$contact instanceof OrganizationContact) {
            $contact = new OrganizationContact($contact);
        }
        $this->contact = $contact;

        return $this;
    }
Sets the Contact Data of an organization

@param EntityInterface $contact

@return $this