src/Micrometa/Domain/Item/Item.php
public function getProperty($name, $profile = null)
    {
        $iri = IriFactory::create(
            (($profile === null) || is_object($name)) ?
                $name :
                (object)[
                    'profile' => $profile,
                    'name'    => $name
                ]
        );

        return $this->properties->offsetGet($iri);
    }
public function getProperty($name, $profile = null)
    {
        $iri = IriFactory::create(
            (($profile === null) || is_object($name)) ?
                $name :
                (object)[
                    'profile' => $profile,
                    'name'    => $name
                ]
        );

        return $this->properties->offsetGet($iri);
    }
public function getProperty ( $ name , $ profile = null ) { $ iri = IriFactory :: create ( ( ( $ profile === null ) || is_object ( $ name ) ) ? $ name : ( object ) [ 'profile' => $ profile , 'name' => $ name ] ) ; return $ this -> properties -> offsetGet ( $ iri ) ; }
Return the values of a particular property

@param string|\stdClass|Iri $name Property name
@param string|null $profile       Property profile

@return array Item property values
Return the values of a particular property