Completed
Push — master ( fd0635...f2796c )
by Tom
06:08
created

WebPageElement::cssSelector()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Spatie\SchemaOrg;
4
5
/**
6
 * A web page element, like a table or an image.
7
 *
8
 * @see http://schema.org/WebPageElement
9
 *
10
 * @mixin \Spatie\SchemaOrg\CreativeWork
11
 */
12
class WebPageElement extends BaseType
13
{
14
    /**
15
     * A CSS selector, e.g. of a [[SpeakableSpecification]] or
16
     * [[WebPageElement]]. In the latter case, multiple matches within a page
17
     * can constitute a single conceptual "Web page element".
18
     *
19
     * @param CssSelectorType|CssSelectorType[] $cssSelector
20
     *
21
     * @return static
22
     *
23
     * @see http://schema.org/cssSelector
24
     */
25
    public function cssSelector($cssSelector)
26
    {
27
        return $this->setProperty('cssSelector', $cssSelector);
28
    }
29
30
    /**
31
     * An XPath, e.g. of a [[SpeakableSpecification]] or [[WebPageElement]]. In
32
     * the latter case, multiple matches within a page can constitute a single
33
     * conceptual "Web page element".
34
     *
35
     * @param XPathType|XPathType[] $xpath
36
     *
37
     * @return static
38
     *
39
     * @see http://schema.org/xpath
40
     */
41
    public function xpath($xpath)
42
    {
43
        return $this->setProperty('xpath', $xpath);
44
    }
45
46
}
47