public function convertToObject($property, Specificity $specificity = null)
    {
        if (strpos($property, ':') === false) {
            return null;
        }

        list($name, $value) = explode(':', $property, 2);

        $name = trim($name);
        $value = trim($value);

        if ($value === '') {
            return null;
        }

        return new Property($name, $value, $specificity);
    }
public function convertToObject($property, Specificity $specificity = null)
    {
        if (strpos($property, ':') === false) {
            return null;
        }

        list($name, $value) = explode(':', $property, 2);

        $name = trim($name);
        $value = trim($value);

        if ($value === '') {
            return null;
        }

        return new Property($name, $value, $specificity);
    }
public function convertToObject ( $ property , Specificity $ specificity = null ) { if ( strpos ( $ property , ':' ) === false ) { return null ; } list ( $ name , $ value ) = explode ( ':' , $ property , 2 ) ; $ name = trim ( $ name ) ; $ value = trim ( $ value ) ; if ( $ value === '' ) { return null ; } return new Property ( $ name , $ value , $ specificity ) ; }
Convert a property-string into an object

@param string $property
@return Property|null
Convert a property - string into an object