public function fill($attributes)
    {
        // Some context types have varying types
        if ($this->hasGetMutator('type')) {
            $this->type = $this->mutateAttribute('type', $this->getArrValue($attributes, 'type', $this->type));
        }

        // Set properties
        $properties = array_merge([
            '@context' => 'http://schema.org',
            '@type' => $this->type,
            'sameAs' => null
        ], $this->structure, $this->extendStructure);

        // Set properties from attributes
        foreach ($properties as $key => $property) {
            $this->setProperty($key, $property, $this->getArrValue($attributes, $key, ''));
        }

        // After fill event
        $this->afterFill($attributes);
    }
public function fill($attributes)
    {
        // Some context types have varying types
        if ($this->hasGetMutator('type')) {
            $this->type = $this->mutateAttribute('type', $this->getArrValue($attributes, 'type', $this->type));
        }

        // Set properties
        $properties = array_merge([
            '@context' => 'http://schema.org',
            '@type' => $this->type,
            'sameAs' => null
        ], $this->structure, $this->extendStructure);

        // Set properties from attributes
        foreach ($properties as $key => $property) {
            $this->setProperty($key, $property, $this->getArrValue($attributes, $key, ''));
        }

        // After fill event
        $this->afterFill($attributes);
    }
public function fill ( $ attributes ) { // Some context types have varying types if ( $ this -> hasGetMutator ( 'type' ) ) { $ this -> type = $ this -> mutateAttribute ( 'type' , $ this -> getArrValue ( $ attributes , 'type' , $ this -> type ) ) ; } // Set properties $ properties = array_merge ( [ '@context' => 'http://schema.org' , '@type' => $ this -> type , 'sameAs' => null ] , $ this -> structure , $ this -> extendStructure ) ; // Set properties from attributes foreach ( $ properties as $ key => $ property ) { $ this -> setProperty ( $ key , $ property , $ this -> getArrValue ( $ attributes , $ key , '' ) ) ; } // After fill event $ this -> afterFill ( $ attributes ) ; }
Creates an array of schema.org attribute from attributes.

@param array $attributes
Creates an array of schema . org attribute from attributes .