src/SellerLabs/Nucleus/Meditation/Spec.php
public function withAnnotation($name, LeftKeyFoldableInterface $map)
    {
        return $map->foldlWithKeys(
            function (self $acc, $value, $fieldName) use ($name) {
                return $acc->withFieldAnnotation($fieldName, $name, $value);
            },
            $this
        );
    }
public function withAnnotation($name, LeftKeyFoldableInterface $map)
    {
        return $map->foldlWithKeys(
            function (self $acc, $value, $fieldName) use ($name) {
                return $acc->withFieldAnnotation($fieldName, $name, $value);
            },
            $this
        );
    }
public function withAnnotation ( $ name , LeftKeyFoldableInterface $ map ) { return $ map -> foldlWithKeys ( function ( self $ acc , $ value , $ fieldName ) use ( $ name ) { return $ acc -> withFieldAnnotation ( $ fieldName , $ name , $ value ) ; } , $ this ) ; }
Get this spec with a map applied as an annotation.

@param string $name
@param LeftKeyFoldableInterface $map

@return mixed
Get this spec with a map applied as an annotation .