src/Represent/Builder/PropertyContextBuilder.php
private function handleRepresentProperty(\ReflectionProperty $property, Property $annot, PropertyContext $context, $original)
    {
        if ($annot->getName()) {
            $context->name = $annot->getName();
        }

        if ($annot->getType()) {
            $context->value = $this->propertyHandler->handleTypeConversion($annot->getType(), $property->getValue($original));
        }

        return $context;
    }
private function handleRepresentProperty(\ReflectionProperty $property, Property $annot, PropertyContext $context, $original)
    {
        if ($annot->getName()) {
            $context->name = $annot->getName();
        }

        if ($annot->getType()) {
            $context->value = $this->propertyHandler->handleTypeConversion($annot->getType(), $property->getValue($original));
        }

        return $context;
    }
private function handleRepresentProperty ( \ ReflectionProperty $ property , Property $ annot , PropertyContext $ context , $ original ) { if ( $ annot -> getName ( ) ) { $ context -> name = $ annot -> getName ( ) ; } if ( $ annot -> getType ( ) ) { $ context -> value = $ this -> propertyHandler -> handleTypeConversion ( $ annot -> getType ( ) , $ property -> getValue ( $ original ) ) ; } return $ context ; }
Handles dealing with Represent\Property annotation
@param \ReflectionProperty                $property
@param Property                           $annot
@param \Represent\Context\PropertyContext $context
@param                                    $original
@return PropertyContext
Handles dealing with Represent \ Property annotation