/** * Static interface for instanciating and extracting * accessors for each segment of the path. * * @param VariableProviderInterface $subject * @param string $propertyPath * @return mixed */ public static function extractAccessors($subject, $propertyPath) { $extractor = new self(); return $extractor->getAccessorsForPath($subject, $propertyPath); }