Add one or more rdf:type properties to the resource
string $types One or more types to add (e.g. foaf:Person):
integer The number of types added
public function addType($types) {
$this
->checkHasGraph();
return $this->graph
->addType($this->uri, $types);
}