Complex classes like Organization often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Organization, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
10 | class Organization extends Thing |
||
11 | { |
||
12 | /** |
||
13 | * The schema.org Actions mechanism benefited from extensive discussions |
||
14 | * across the Web standards community around W3C, in particular from the |
||
15 | * [Hydra project](http://purl.org/hydra/)'s community group. |
||
16 | * |
||
17 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_ActionCollabClass |
||
18 | */ |
||
19 | const ActionCollabClass = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_ActionCollabClass'; |
||
20 | |||
21 | /** |
||
22 | * This element is based on the work of the Automotive Ontology Working |
||
23 | * Group, see |
||
24 | * [www.automotive-ontology.org](http://www.automotive-ontology.org) for |
||
25 | * details. Many class and property definitions are inspired by or based on |
||
26 | * abstracts from Wikipedia, the free encyclopedia. |
||
27 | * |
||
28 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#Automotive_Ontology_Working_Group |
||
29 | */ |
||
30 | const AutomotiveOntologyWGClass = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#Automotive_Ontology_Working_Group'; |
||
31 | |||
32 | /** |
||
33 | * The W3C [Schema Bib Extend](http://www.w3.org/community/schemabibex/) |
||
34 | * (BibEx) group led the work to improve schema.org for bibliographic |
||
35 | * information, including terms for periodicals, articles and multi-volume |
||
36 | * works. The design was inspired in places (e.g. [[pageStart]], |
||
37 | * [[pageEnd]], [[pagination]]) by the [Bibliographic |
||
38 | * Ontology](http://bibliontology.com/), 'bibo'. |
||
39 | * |
||
40 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_bibex |
||
41 | */ |
||
42 | const BibExTerm = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_bibex'; |
||
43 | |||
44 | /** |
||
45 | * This class is based upon W3C DCAT work, and benefits from collaboration |
||
46 | * around the DCAT, ADMS and VoID vocabularies. See |
||
47 | * http://www.w3.org/wiki/WebSchemas/Datasets for full details and mappings. |
||
48 | * |
||
49 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_DatasetClass |
||
50 | */ |
||
51 | const DatasetClass = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_DatasetClass'; |
||
52 | |||
53 | /** |
||
54 | * This element is based on the work of the Financial Industry Business |
||
55 | * Ontology project (see |
||
56 | * [http://www.fibo.org/schema](http://www.fibo.org/schema) for details), in |
||
57 | * support of the W3C Financial Industry Business Ontology Community Group |
||
58 | * ([http://www.fibo.org/community](http://www.fibo.org/community)). Many |
||
59 | * class and property definitions are inspired by or based on |
||
60 | * [http://www.fibo.org](http://www.fibo.org). |
||
61 | * |
||
62 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#FIBO |
||
63 | */ |
||
64 | const FIBO = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#FIBO'; |
||
65 | |||
66 | /** |
||
67 | * The implementation and use of Legal Entity Identifier (LEI) is supported |
||
68 | * by Global Legal Entity Identifier Foundation |
||
69 | * [https://www.gleif.org](https://www.gleif.org). |
||
70 | * |
||
71 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#GLEIF |
||
72 | */ |
||
73 | const GLEIF = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#GLEIF'; |
||
74 | |||
75 | /** |
||
76 | * This class is derived from the GoodRelations Vocabulary for E-Commerce, |
||
77 | * created by Martin Hepp. GoodRelations is a data model for sharing |
||
78 | * e-commerce data on the Web that can be expressed in a variety of |
||
79 | * syntaxes, including RDFa and HTML5 Microdata. More information about |
||
80 | * GoodRelations can be found at |
||
81 | * [http://purl.org/goodrelations/](http://purl.org/goodrelations/). |
||
82 | * |
||
83 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_GoodRelationsClass |
||
84 | */ |
||
85 | const GoodRelationsClass = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_GoodRelationsClass'; |
||
86 | |||
87 | /** |
||
88 | * This term |
||
89 | * [uses](http://blog.schema.org/2012/11/good-relations-and-schemaorg.html) |
||
90 | * terminology from the GoodRelations Vocabulary for E-Commerce, created by |
||
91 | * Martin Hepp. GoodRelations is a data model for sharing e-commerce data on |
||
92 | * the Web. More information about GoodRelations can be found at |
||
93 | * [http://purl.org/goodrelations/](http://purl.org/goodrelations/). |
||
94 | * |
||
95 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_GoodRelationsTerms |
||
96 | */ |
||
97 | const GoodRelationsTerms = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_GoodRelationsTerms'; |
||
98 | |||
99 | /** |
||
100 | * This element is based on work by the Web Applications for the Future |
||
101 | * Internet Lab, Institute of Informatics and Telematics, Pisa, Italy. |
||
102 | * |
||
103 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#IIT-CNR.it |
||
104 | */ |
||
105 | const IITCNRit = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#IIT-CNR.it'; |
||
106 | |||
107 | /** |
||
108 | * This class is based on the work of the LRMI project, see lrmi.net for |
||
109 | * details. |
||
110 | * |
||
111 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_LRMIClass |
||
112 | */ |
||
113 | const LRMIClass = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_LRMIClass'; |
||
114 | |||
115 | /** |
||
116 | * This vocabulary was improved through collaboration with the MusicBrainz |
||
117 | * project |
||
118 | * ([www.musicbrainz.org](http://www.musicbrainz.org)), and is partially |
||
119 | * inspired by the MusicBrainz and |
||
120 | * [Music Ontology](http://musicontology.com/docs/getting-started.html) |
||
121 | * schemas. |
||
122 | * |
||
123 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#MBZ |
||
124 | */ |
||
125 | const MBZ = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#MBZ'; |
||
126 | |||
127 | /** |
||
128 | * This element is based on the STI Accommodation Ontology, see <a |
||
129 | * href="http://ontologies.sti-innsbruck.at/acco/ns.html">http://ontologies.sti-innsbruck.at/acco/ns.html</a> |
||
130 | * for details. |
||
131 | * Many class and property definitions are inspired by or based on |
||
132 | * abstracts from Wikipedia, the free encyclopedia. |
||
133 | * |
||
134 | * @see https://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#STI_Accommodation_Ontology |
||
135 | */ |
||
136 | const STI_Accommodation_Ontology = 'https://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#STI_Accommodation_Ontology'; |
||
137 | |||
138 | /** |
||
139 | * The Question/Answer types were [based |
||
140 | * on](https://www.w3.org/wiki/WebSchemas/QASchemaResearch) the Stack |
||
141 | * Overflow API. |
||
142 | * |
||
143 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_QAStackExchange |
||
144 | */ |
||
145 | const Stack_Exchange = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_QAStackExchange'; |
||
146 | |||
147 | /** |
||
148 | * This term and associated definitions draws upon the work of [The Trust |
||
149 | * Project](http://thetrustproject.org/). |
||
150 | * |
||
151 | * @see https://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#TP-draws |
||
152 | */ |
||
153 | const The_Trust_Project = 'https://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#TP-draws'; |
||
154 | |||
155 | /** |
||
156 | * This element is based on the work of the [Tourism Structured Web Data |
||
157 | * Community Group](https://www.w3.org/community/tourismdata). |
||
158 | * |
||
159 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#Tourism |
||
160 | */ |
||
161 | const Tourism = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#Tourism'; |
||
162 | |||
163 | /** |
||
164 | * This class contains information contributed by |
||
165 | * [http://wikidoc.org>WikiDoc](http://wikidoc.org>WikiDoc). |
||
166 | * |
||
167 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_WikiDoc |
||
168 | */ |
||
169 | const WikiDoc = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_WikiDoc'; |
||
170 | |||
171 | /** |
||
172 | * This class contains derivatives of IPTC rNews properties. rNews is a data |
||
173 | * model of publishing metadata with serializations currently available for |
||
174 | * RDFa as well as HTML5 Microdata. More information about the IPTC and |
||
175 | * rNews can be found at [rnews.org](http://rnews.org). |
||
176 | * |
||
177 | * @see http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_rNews |
||
178 | */ |
||
179 | const rNews = 'http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_rNews'; |
||
180 | |||
181 | /** |
||
182 | * Physical address of the item. |
||
183 | * |
||
184 | * @param PostalAddress|PostalAddress[]|string|string[] $address |
||
185 | * |
||
186 | * @return static |
||
187 | * |
||
188 | * @see http://schema.org/address |
||
189 | */ |
||
190 | public function address($address) |
||
194 | |||
195 | /** |
||
196 | * The overall rating, based on a collection of reviews or ratings, of the |
||
197 | * item. |
||
198 | * |
||
199 | * @param AggregateRating|AggregateRating[] $aggregateRating |
||
200 | * |
||
201 | * @return static |
||
202 | * |
||
203 | * @see http://schema.org/aggregateRating |
||
204 | */ |
||
205 | public function aggregateRating($aggregateRating) |
||
209 | |||
210 | /** |
||
211 | * The geographic area where a service or offered item is provided. |
||
212 | * |
||
213 | * @param AdministrativeArea|AdministrativeArea[]|GeoShape|GeoShape[]|Place|Place[]|string|string[] $areaServed |
||
214 | * |
||
215 | * @return static |
||
216 | * |
||
217 | * @see http://schema.org/areaServed |
||
218 | */ |
||
219 | public function areaServed($areaServed) |
||
223 | |||
224 | /** |
||
225 | * An award won by or for this item. |
||
226 | * |
||
227 | * @param string|string[] $award |
||
228 | * |
||
229 | * @return static |
||
230 | * |
||
231 | * @see http://schema.org/award |
||
232 | */ |
||
233 | public function award($award) |
||
237 | |||
238 | /** |
||
239 | * Awards won by or for this item. |
||
240 | * |
||
241 | * @param string|string[] $awards |
||
242 | * |
||
243 | * @return static |
||
244 | * |
||
245 | * @see http://schema.org/awards |
||
246 | */ |
||
247 | public function awards($awards) |
||
251 | |||
252 | /** |
||
253 | * The brand(s) associated with a product or service, or the brand(s) |
||
254 | * maintained by an organization or business person. |
||
255 | * |
||
256 | * @param Brand|Brand[]|Organization|Organization[] $brand |
||
257 | * |
||
258 | * @return static |
||
259 | * |
||
260 | * @see http://schema.org/brand |
||
261 | */ |
||
262 | public function brand($brand) |
||
266 | |||
267 | /** |
||
268 | * A contact point for a person or organization. |
||
269 | * |
||
270 | * @param ContactPoint|ContactPoint[] $contactPoint |
||
271 | * |
||
272 | * @return static |
||
273 | * |
||
274 | * @see http://schema.org/contactPoint |
||
275 | */ |
||
276 | public function contactPoint($contactPoint) |
||
280 | |||
281 | /** |
||
282 | * A contact point for a person or organization. |
||
283 | * |
||
284 | * @param ContactPoint|ContactPoint[] $contactPoints |
||
285 | * |
||
286 | * @return static |
||
287 | * |
||
288 | * @see http://schema.org/contactPoints |
||
289 | */ |
||
290 | public function contactPoints($contactPoints) |
||
294 | |||
295 | /** |
||
296 | * A relationship between an organization and a department of that |
||
297 | * organization, also described as an organization (allowing different urls, |
||
298 | * logos, opening hours). For example: a store with a pharmacy, or a bakery |
||
299 | * with a cafe. |
||
300 | * |
||
301 | * @param Organization|Organization[] $department |
||
302 | * |
||
303 | * @return static |
||
304 | * |
||
305 | * @see http://schema.org/department |
||
306 | */ |
||
307 | public function department($department) |
||
311 | |||
312 | /** |
||
313 | * The date that this organization was dissolved. |
||
314 | * |
||
315 | * @param \DateTimeInterface|\DateTimeInterface[] $dissolutionDate |
||
316 | * |
||
317 | * @return static |
||
318 | * |
||
319 | * @see http://schema.org/dissolutionDate |
||
320 | */ |
||
321 | public function dissolutionDate($dissolutionDate) |
||
325 | |||
326 | /** |
||
327 | * The Dun & Bradstreet DUNS number for identifying an organization or |
||
328 | * business person. |
||
329 | * |
||
330 | * @param string|string[] $duns |
||
331 | * |
||
332 | * @return static |
||
333 | * |
||
334 | * @see http://schema.org/duns |
||
335 | */ |
||
336 | public function duns($duns) |
||
340 | |||
341 | /** |
||
342 | * Email address. |
||
343 | * |
||
344 | * @param string|string[] $email |
||
345 | * |
||
346 | * @return static |
||
347 | * |
||
348 | * @see http://schema.org/email |
||
349 | */ |
||
350 | public function email($email) |
||
354 | |||
355 | /** |
||
356 | * Someone working for this organization. |
||
357 | * |
||
358 | * @param Person|Person[] $employee |
||
359 | * |
||
360 | * @return static |
||
361 | * |
||
362 | * @see http://schema.org/employee |
||
363 | */ |
||
364 | public function employee($employee) |
||
368 | |||
369 | /** |
||
370 | * People working for this organization. |
||
371 | * |
||
372 | * @param Person|Person[] $employees |
||
373 | * |
||
374 | * @return static |
||
375 | * |
||
376 | * @see http://schema.org/employees |
||
377 | */ |
||
378 | public function employees($employees) |
||
382 | |||
383 | /** |
||
384 | * Upcoming or past event associated with this place, organization, or |
||
385 | * action. |
||
386 | * |
||
387 | * @param Event|Event[] $event |
||
388 | * |
||
389 | * @return static |
||
390 | * |
||
391 | * @see http://schema.org/event |
||
392 | */ |
||
393 | public function event($event) |
||
397 | |||
398 | /** |
||
399 | * Upcoming or past events associated with this place or organization. |
||
400 | * |
||
401 | * @param Event|Event[] $events |
||
402 | * |
||
403 | * @return static |
||
404 | * |
||
405 | * @see http://schema.org/events |
||
406 | */ |
||
407 | public function events($events) |
||
411 | |||
412 | /** |
||
413 | * The fax number. |
||
414 | * |
||
415 | * @param string|string[] $faxNumber |
||
416 | * |
||
417 | * @return static |
||
418 | * |
||
419 | * @see http://schema.org/faxNumber |
||
420 | */ |
||
421 | public function faxNumber($faxNumber) |
||
425 | |||
426 | /** |
||
427 | * A person who founded this organization. |
||
428 | * |
||
429 | * @param Person|Person[] $founder |
||
430 | * |
||
431 | * @return static |
||
432 | * |
||
433 | * @see http://schema.org/founder |
||
434 | */ |
||
435 | public function founder($founder) |
||
439 | |||
440 | /** |
||
441 | * A person who founded this organization. |
||
442 | * |
||
443 | * @param Person|Person[] $founders |
||
444 | * |
||
445 | * @return static |
||
446 | * |
||
447 | * @see http://schema.org/founders |
||
448 | */ |
||
449 | public function founders($founders) |
||
453 | |||
454 | /** |
||
455 | * The date that this organization was founded. |
||
456 | * |
||
457 | * @param \DateTimeInterface|\DateTimeInterface[] $foundingDate |
||
458 | * |
||
459 | * @return static |
||
460 | * |
||
461 | * @see http://schema.org/foundingDate |
||
462 | */ |
||
463 | public function foundingDate($foundingDate) |
||
467 | |||
468 | /** |
||
469 | * The place where the Organization was founded. |
||
470 | * |
||
471 | * @param Place|Place[] $foundingLocation |
||
472 | * |
||
473 | * @return static |
||
474 | * |
||
475 | * @see http://schema.org/foundingLocation |
||
476 | */ |
||
477 | public function foundingLocation($foundingLocation) |
||
481 | |||
482 | /** |
||
483 | * A person or organization that supports (sponsors) something through some |
||
484 | * kind of financial contribution. |
||
485 | * |
||
486 | * @param Organization|Organization[]|Person|Person[] $funder |
||
487 | * |
||
488 | * @return static |
||
489 | * |
||
490 | * @see http://schema.org/funder |
||
491 | */ |
||
492 | public function funder($funder) |
||
496 | |||
497 | /** |
||
498 | * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also |
||
499 | * referred to as International Location Number or ILN) of the respective |
||
500 | * organization, person, or place. The GLN is a 13-digit number used to |
||
501 | * identify parties and physical locations. |
||
502 | * |
||
503 | * @param string|string[] $globalLocationNumber |
||
504 | * |
||
505 | * @return static |
||
506 | * |
||
507 | * @see http://schema.org/globalLocationNumber |
||
508 | */ |
||
509 | public function globalLocationNumber($globalLocationNumber) |
||
513 | |||
514 | /** |
||
515 | * Indicates an OfferCatalog listing for this Organization, Person, or |
||
516 | * Service. |
||
517 | * |
||
518 | * @param OfferCatalog|OfferCatalog[] $hasOfferCatalog |
||
519 | * |
||
520 | * @return static |
||
521 | * |
||
522 | * @see http://schema.org/hasOfferCatalog |
||
523 | */ |
||
524 | public function hasOfferCatalog($hasOfferCatalog) |
||
528 | |||
529 | /** |
||
530 | * Points-of-Sales operated by the organization or person. |
||
531 | * |
||
532 | * @param Place|Place[] $hasPOS |
||
533 | * |
||
534 | * @return static |
||
535 | * |
||
536 | * @see http://schema.org/hasPOS |
||
537 | */ |
||
538 | public function hasPOS($hasPOS) |
||
542 | |||
543 | /** |
||
544 | * The International Standard of Industrial Classification of All Economic |
||
545 | * Activities (ISIC), Revision 4 code for a particular organization, |
||
546 | * business person, or place. |
||
547 | * |
||
548 | * @param string|string[] $isicV4 |
||
549 | * |
||
550 | * @return static |
||
551 | * |
||
552 | * @see http://schema.org/isicV4 |
||
553 | */ |
||
554 | public function isicV4($isicV4) |
||
558 | |||
559 | /** |
||
560 | * The official name of the organization, e.g. the registered company name. |
||
561 | * |
||
562 | * @param string|string[] $legalName |
||
563 | * |
||
564 | * @return static |
||
565 | * |
||
566 | * @see http://schema.org/legalName |
||
567 | */ |
||
568 | public function legalName($legalName) |
||
572 | |||
573 | /** |
||
574 | * An organization identifier that uniquely identifies a legal entity as |
||
575 | * defined in ISO 17442. |
||
576 | * |
||
577 | * @param string|string[] $leiCode |
||
578 | * |
||
579 | * @return static |
||
580 | * |
||
581 | * @see http://schema.org/leiCode |
||
582 | */ |
||
583 | public function leiCode($leiCode) |
||
587 | |||
588 | /** |
||
589 | * The location of for example where the event is happening, an organization |
||
590 | * is located, or where an action takes place. |
||
591 | * |
||
592 | * @param Place|Place[]|PostalAddress|PostalAddress[]|string|string[] $location |
||
593 | * |
||
594 | * @return static |
||
595 | * |
||
596 | * @see http://schema.org/location |
||
597 | */ |
||
598 | public function location($location) |
||
602 | |||
603 | /** |
||
604 | * An associated logo. |
||
605 | * |
||
606 | * @param ImageObject|ImageObject[]|string|string[] $logo |
||
607 | * |
||
608 | * @return static |
||
609 | * |
||
610 | * @see http://schema.org/logo |
||
611 | */ |
||
612 | public function logo($logo) |
||
616 | |||
617 | /** |
||
618 | * A pointer to products or services offered by the organization or person. |
||
619 | * |
||
620 | * @param Offer|Offer[] $makesOffer |
||
621 | * |
||
622 | * @return static |
||
623 | * |
||
624 | * @see http://schema.org/makesOffer |
||
625 | */ |
||
626 | public function makesOffer($makesOffer) |
||
630 | |||
631 | /** |
||
632 | * A member of an Organization or a ProgramMembership. Organizations can be |
||
633 | * members of organizations; ProgramMembership is typically for individuals. |
||
634 | * |
||
635 | * @param Organization|Organization[]|Person|Person[] $member |
||
636 | * |
||
637 | * @return static |
||
638 | * |
||
639 | * @see http://schema.org/member |
||
640 | */ |
||
641 | public function member($member) |
||
645 | |||
646 | /** |
||
647 | * An Organization (or ProgramMembership) to which this Person or |
||
648 | * Organization belongs. |
||
649 | * |
||
650 | * @param Organization|Organization[]|ProgramMembership|ProgramMembership[] $memberOf |
||
651 | * |
||
652 | * @return static |
||
653 | * |
||
654 | * @see http://schema.org/memberOf |
||
655 | */ |
||
656 | public function memberOf($memberOf) |
||
660 | |||
661 | /** |
||
662 | * A member of this organization. |
||
663 | * |
||
664 | * @param Organization|Organization[]|Person|Person[] $members |
||
665 | * |
||
666 | * @return static |
||
667 | * |
||
668 | * @see http://schema.org/members |
||
669 | */ |
||
670 | public function members($members) |
||
674 | |||
675 | /** |
||
676 | * The North American Industry Classification System (NAICS) code for a |
||
677 | * particular organization or business person. |
||
678 | * |
||
679 | * @param string|string[] $naics |
||
680 | * |
||
681 | * @return static |
||
682 | * |
||
683 | * @see http://schema.org/naics |
||
684 | */ |
||
685 | public function naics($naics) |
||
689 | |||
690 | /** |
||
691 | * The number of employees in an organization e.g. business. |
||
692 | * |
||
693 | * @param QuantitativeValue|QuantitativeValue[] $numberOfEmployees |
||
694 | * |
||
695 | * @return static |
||
696 | * |
||
697 | * @see http://schema.org/numberOfEmployees |
||
698 | */ |
||
699 | public function numberOfEmployees($numberOfEmployees) |
||
703 | |||
704 | /** |
||
705 | * A pointer to the organization or person making the offer. |
||
706 | * |
||
707 | * @param Offer|Offer[]|Person|Person[] $offeredBy |
||
708 | * |
||
709 | * @return static |
||
710 | * |
||
711 | * @see http://schema.org/offeredBy |
||
712 | */ |
||
713 | public function offeredBy($offeredBy) |
||
717 | |||
718 | /** |
||
719 | * Products owned by the organization or person. |
||
720 | * |
||
721 | * @param OwnershipInfo|OwnershipInfo[]|Product|Product[] $owns |
||
722 | * |
||
723 | * @return static |
||
724 | * |
||
725 | * @see http://schema.org/owns |
||
726 | */ |
||
727 | public function owns($owns) |
||
731 | |||
732 | /** |
||
733 | * The larger organization that this organization is a [[subOrganization]] |
||
734 | * of, if any. |
||
735 | * |
||
736 | * @param Organization|Organization[] $parentOrganization |
||
737 | * |
||
738 | * @return static |
||
739 | * |
||
740 | * @see http://schema.org/parentOrganization |
||
741 | */ |
||
742 | public function parentOrganization($parentOrganization) |
||
746 | |||
747 | /** |
||
748 | * The publishingPrinciples property indicates (typically via [[URL]]) a |
||
749 | * document describing the editorial principles of an [[Organization]] (or |
||
750 | * individual e.g. a [[Person]] writing a blog) that relate to their |
||
751 | * activities as a publisher, e.g. ethics or diversity policies. When |
||
752 | * applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are |
||
753 | * those of the party primarily responsible for the creation of the |
||
754 | * [[CreativeWork]]. |
||
755 | * |
||
756 | * While such policies are most typically expressed in natural language, |
||
757 | * sometimes related information (e.g. indicating a [[funder]]) can be |
||
758 | * expressed using schema.org terminology. |
||
759 | * |
||
760 | * @param CreativeWork|CreativeWork[]|string|string[] $publishingPrinciples |
||
761 | * |
||
762 | * @return static |
||
763 | * |
||
764 | * @see http://schema.org/publishingPrinciples |
||
765 | */ |
||
766 | public function publishingPrinciples($publishingPrinciples) |
||
770 | |||
771 | /** |
||
772 | * A review of the item. |
||
773 | * |
||
774 | * @param Review|Review[] $review |
||
775 | * |
||
776 | * @return static |
||
777 | * |
||
778 | * @see http://schema.org/review |
||
779 | */ |
||
780 | public function review($review) |
||
784 | |||
785 | /** |
||
786 | * Review of the item. |
||
787 | * |
||
788 | * @param Review|Review[] $reviews |
||
789 | * |
||
790 | * @return static |
||
791 | * |
||
792 | * @see http://schema.org/reviews |
||
793 | */ |
||
794 | public function reviews($reviews) |
||
798 | |||
799 | /** |
||
800 | * A pointer to products or services sought by the organization or person |
||
801 | * (demand). |
||
802 | * |
||
803 | * @param Demand|Demand[] $seeks |
||
804 | * |
||
805 | * @return static |
||
806 | * |
||
807 | * @see http://schema.org/seeks |
||
808 | */ |
||
809 | public function seeks($seeks) |
||
813 | |||
814 | /** |
||
815 | * The geographic area where the service is provided. |
||
816 | * |
||
817 | * @param AdministrativeArea|AdministrativeArea[]|GeoShape|GeoShape[]|Place|Place[] $serviceArea |
||
818 | * |
||
819 | * @return static |
||
820 | * |
||
821 | * @see http://schema.org/serviceArea |
||
822 | */ |
||
823 | public function serviceArea($serviceArea) |
||
827 | |||
828 | /** |
||
829 | * A person or organization that supports a thing through a pledge, promise, |
||
830 | * or financial contribution. e.g. a sponsor of a Medical Study or a |
||
831 | * corporate sponsor of an event. |
||
832 | * |
||
833 | * @param Organization|Organization[]|Person|Person[] $sponsor |
||
834 | * |
||
835 | * @return static |
||
836 | * |
||
837 | * @see http://schema.org/sponsor |
||
838 | */ |
||
839 | public function sponsor($sponsor) |
||
843 | |||
844 | /** |
||
845 | * A relationship between two organizations where the first includes the |
||
846 | * second, e.g., as a subsidiary. See also: the more specific 'department' |
||
847 | * property. |
||
848 | * |
||
849 | * @param Organization|Organization[] $subOrganization |
||
850 | * |
||
851 | * @return static |
||
852 | * |
||
853 | * @see http://schema.org/subOrganization |
||
854 | */ |
||
855 | public function subOrganization($subOrganization) |
||
859 | |||
860 | /** |
||
861 | * The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US |
||
862 | * or the CIF/NIF in Spain. |
||
863 | * |
||
864 | * @param string|string[] $taxID |
||
865 | * |
||
866 | * @return static |
||
867 | * |
||
868 | * @see http://schema.org/taxID |
||
869 | */ |
||
870 | public function taxID($taxID) |
||
874 | |||
875 | /** |
||
876 | * The telephone number. |
||
877 | * |
||
878 | * @param string|string[] $telephone |
||
879 | * |
||
880 | * @return static |
||
881 | * |
||
882 | * @see http://schema.org/telephone |
||
883 | */ |
||
884 | public function telephone($telephone) |
||
888 | |||
889 | /** |
||
890 | * The Value-added Tax ID of the organization or person. |
||
891 | * |
||
892 | * @param string|string[] $vatID |
||
893 | * |
||
894 | * @return static |
||
895 | * |
||
896 | * @see http://schema.org/vatID |
||
897 | */ |
||
898 | public function vatID($vatID) |
||
902 | |||
903 | } |
||
904 |